org.drools.mvel.parser.ast.expr.MapCreationLiteralExpression Maven / Gradle / Ivy
package org.drools.mvel.parser.ast.expr;
import com.github.javaparser.TokenRange;
import com.github.javaparser.ast.NodeList;
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 MapCreationLiteralExpression extends Expression {
private final NodeList expressions;
public MapCreationLiteralExpression(TokenRange tokenRange, NodeList expressions) {
super(tokenRange);
this.expressions = expressions;
}
@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 NodeList getExpressions() {
return expressions;
}
}