Interface ExpressionVisitor<R>
- 
- Type Parameters:
- R- Return type of the visitor.
 - All Known Implementing Classes:
- ExpressionVisitor.Default,- RuleEvaluator,- TraversingVisitor
 
 public interface ExpressionVisitor<R>Expression visitor pattern.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classExpressionVisitor.Default<R>
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description RvisitBoolEquals(Expression left, Expression right)Does a boolean equality check.RvisitGetAttr(GetAttr getAttr)Visits a GetAttr function.RvisitIsSet(Expression fn)Visits an isSet function.RvisitLibraryFunction(FunctionDefinition fn, java.util.List<Expression> args)Visits a library function.RvisitLiteral(Literal literal)Visits a literal.RvisitNot(Expression not)Visits a not function.RvisitRef(Reference reference)Visits a reference.RvisitStringEquals(Expression left, Expression right)Does a string equality check.
 
- 
- 
- 
Method Detail- 
visitLiteralR visitLiteral(Literal literal) Visits a literal.- Parameters:
- literal- the literal to visit.
- Returns:
- the value from the visitor.
 
 - 
visitRefR visitRef(Reference reference) Visits a reference.- Parameters:
- reference- the reference to visit.
- Returns:
- the value from the visitor.
 
 - 
visitGetAttrR visitGetAttr(GetAttr getAttr) Visits a GetAttr function.- Parameters:
- getAttr- the GetAttr function to visit.
- Returns:
- the value from the visitor.
 
 - 
visitIsSetR visitIsSet(Expression fn) Visits an isSet function.- Parameters:
- fn- the isSet function to visit.
- Returns:
- the value from the visitor.
 
 - 
visitNotR visitNot(Expression not) Visits a not function.- Parameters:
- not- the not function to visit.
- Returns:
- the value from the visitor.
 
 - 
visitBoolEqualsR visitBoolEquals(Expression left, Expression right) Does a boolean equality check.- Parameters:
- left- the first value to compare.
- right- the second value to compare.
- Returns:
- the value from the visitor.
 
 - 
visitStringEqualsR visitStringEquals(Expression left, Expression right) Does a string equality check.- Parameters:
- left- the first value to compare.
- right- the second value to compare.
- Returns:
- the value from the visitor.
 
 - 
visitLibraryFunctionR visitLibraryFunction(FunctionDefinition fn, java.util.List<Expression> args) Visits a library function.- Parameters:
- fn- the library function to visit.
- args- the arguments to the function being visited.
- Returns:
- the value from the visitor.
 
 
- 
 
-