org.drools.constraint.parser.ast.expr.MapCreationLiteralExpressionKeyValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drools-constraint-parser Show documentation
Show all versions of drools-constraint-parser Show documentation
Parsing of constraints in LHS
package org.drools.constraint.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.constraint.parser.ast.visitor.DrlGenericVisitor;
import org.drools.constraint.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 - 2025 Weber Informatics LLC | Privacy Policy