Class VariableFinder
java.lang.Object
org.apache.sling.scripting.sightly.compiler.expression.SideEffectVisitor
org.apache.sling.scripting.sightly.impl.compiler.optimization.VariableFinder
- All Implemented Interfaces:
NodeVisitor<Object>
SideEffectVisitor which extracts all the variables from an expression.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindVariables
(ExpressionNode node) void
visit
(ArrayLiteral arrayLiteral) void
visit
(BinaryOperation binaryOperation) void
visit
(BooleanConstant booleanConstant) void
visit
(Identifier identifier) void
visit
(MapLiteral mapLiteral) void
visit
(NullLiteral nullLiteral) void
visit
(NumericConstant numericConstant) void
visit
(PropertyAccess propertyAccess) void
visit
(RuntimeCall runtimeCall) void
visit
(StringConstant text) void
visit
(TernaryOperator ternaryOperator) void
visit
(UnaryOperation unaryOperation)
-
Constructor Details
-
VariableFinder
-
-
Method Details
-
findVariables
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-
visit
- Specified by:
visit
in classSideEffectVisitor
-