All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.mvel.parser.ast.expr.MapCreationLiteralExpressionKeyValuePair Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package org.drools.mvel.parser.ast.expr;

import com.github.javaparser.TokenRange;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.visitor.GenericVisitor;
import com.github.javaparser.ast.visitor.VoidVisitor;
import org.drools.mvel.parser.ast.visitor.DrlGenericVisitor;
import org.drools.mvel.parser.ast.visitor.DrlVoidVisitor;

public class MapCreationLiteralExpressionKeyValuePair extends Expression {

    private final Expression key;
    private final Expression value;

    public MapCreationLiteralExpressionKeyValuePair(TokenRange tokenRange, Expression key, Expression value) {
        super(tokenRange);
        this.key = key;
        this.value = value;
    }

    @Override
    public  R accept(GenericVisitor v, A arg) {
        return ((DrlGenericVisitor) v).visit(this, arg);
    }

    @Override
    public  void accept(VoidVisitor v, A arg) {
        ((DrlVoidVisitor) v).visit(this, arg);
    }

    public Expression getKey() {
        return key;
    }

    public Expression getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy