Interface NodeVisitor<T>
- Type Parameters:
T
- the type of the object that's returned after anExpressionNode
evaluation
- All Known Implementing Classes:
ExpressionReducer
,NodeTransformer
,SideEffectVisitor
,VariableFinder
@ProviderType
public interface NodeVisitor<T>
A
NodeVisitor
represents the mechanism through which ExpressionNode
entities are processed.-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(ArrayLiteral arrayLiteral) Evaluate aArrayLiteral
node.evaluate
(BinaryOperation binaryOperation) Evaluate aBinaryOperation
node.evaluate
(BooleanConstant booleanConstant) Evaluate aBooleanConstant
node.evaluate
(Identifier identifier) Evaluate anIdentifier
node.evaluate
(MapLiteral mapLiteral) Evaluate aMapLiteral
node.evaluate
(NullLiteral nullLiteral) Evaluate aNullLiteral
node.evaluate
(NumericConstant numericConstant) Evaluate aNumericConstant
node.evaluate
(PropertyAccess propertyAccess) Evaluate aPropertyAccess
node.evaluate
(RuntimeCall runtimeCall) Evaluate aRuntimeCall
node.evaluate
(StringConstant text) Evaluate aStringConstant
node.evaluate
(TernaryOperator ternaryOperator) Evaluate aTernaryOperator
node.evaluate
(UnaryOperation unaryOperation) Evaluate aUnaryOperation
node.
-
Method Details
-
evaluate
Evaluate aPropertyAccess
node.- Parameters:
propertyAccess
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate anIdentifier
node.- Parameters:
identifier
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aStringConstant
node.- Parameters:
text
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aBinaryOperation
node.- Parameters:
binaryOperation
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aBooleanConstant
node.- Parameters:
booleanConstant
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aNumericConstant
node.- Parameters:
numericConstant
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aUnaryOperation
node.- Parameters:
unaryOperation
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aTernaryOperator
node.- Parameters:
ternaryOperator
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aRuntimeCall
node.- Parameters:
runtimeCall
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aMapLiteral
node.- Parameters:
mapLiteral
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aArrayLiteral
node.- Parameters:
arrayLiteral
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Evaluate aNullLiteral
node.- Parameters:
nullLiteral
- the node to evaluate- Returns:
- the evaluation result
-