Class SideEffectVisitor
java.lang.Object
org.apache.sling.scripting.sightly.compiler.expression.SideEffectVisitor
- All Implemented Interfaces:
NodeVisitor<Object>
- Direct Known Subclasses:
VariableFinder
Expression visitor which does not return anything for nodes; instead it performs specific side-effects depending on the expression
nodes types.
-
Constructor Summary
-
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.abstract void
visit
(ArrayLiteral arrayLiteral) abstract void
visit
(BinaryOperation binaryOperation) abstract void
visit
(BooleanConstant booleanConstant) abstract void
visit
(Identifier identifier) abstract void
visit
(MapLiteral mapLiteral) abstract void
visit
(NullLiteral nullLiteral) abstract void
visit
(NumericConstant numericConstant) abstract void
visit
(PropertyAccess propertyAccess) abstract void
visit
(RuntimeCall runtimeCall) abstract void
visit
(StringConstant text) abstract void
visit
(TernaryOperator ternaryOperator) abstract void
visit
(UnaryOperation unaryOperation)
-
Constructor Details
-
SideEffectVisitor
public SideEffectVisitor()
-
-
Method Details
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
visit
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aPropertyAccess
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
propertyAccess
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate anIdentifier
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
identifier
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aStringConstant
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
text
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aBinaryOperation
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
binaryOperation
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aBooleanConstant
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
booleanConstant
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aNumericConstant
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
numericConstant
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aUnaryOperation
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
unaryOperation
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aTernaryOperator
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
ternaryOperator
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aRuntimeCall
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
runtimeCall
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aMapLiteral
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
mapLiteral
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aArrayLiteral
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
arrayLiteral
- the node to evaluate- Returns:
- the evaluation result
-
evaluate
Description copied from interface:NodeVisitor
Evaluate aNullLiteral
node.- Specified by:
evaluate
in interfaceNodeVisitor<Object>
- Parameters:
nullLiteral
- the node to evaluate- Returns:
- the evaluation result
-