public abstract class SideEffectVisitor extends java.lang.Object implements NodeVisitor<java.lang.Object>
Constructor and Description |
---|
SideEffectVisitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(ArrayLiteral arrayLiteral)
Evaluate a
ArrayLiteral node. |
java.lang.Object |
evaluate(BinaryOperation binaryOperation)
Evaluate a
BinaryOperation node. |
java.lang.Object |
evaluate(BooleanConstant booleanConstant)
Evaluate a
BooleanConstant node. |
java.lang.Object |
evaluate(Identifier identifier)
Evaluate an
Identifier node. |
java.lang.Object |
evaluate(MapLiteral mapLiteral)
Evaluate a
MapLiteral node. |
java.lang.Object |
evaluate(NullLiteral nullLiteral)
Evaluate a
NullLiteral node. |
java.lang.Object |
evaluate(NumericConstant numericConstant)
Evaluate a
NumericConstant node. |
java.lang.Object |
evaluate(PropertyAccess propertyAccess)
Evaluate a
PropertyAccess node. |
java.lang.Object |
evaluate(RuntimeCall runtimeCall)
Evaluate a
RuntimeCall node. |
java.lang.Object |
evaluate(StringConstant text)
Evaluate a
StringConstant node. |
java.lang.Object |
evaluate(TernaryOperator ternaryOperator)
Evaluate a
TernaryOperator node. |
java.lang.Object |
evaluate(UnaryOperation unaryOperation)
Evaluate a
UnaryOperation 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) |
public abstract void visit(PropertyAccess propertyAccess)
public abstract void visit(Identifier identifier)
public abstract void visit(StringConstant text)
public abstract void visit(BinaryOperation binaryOperation)
public abstract void visit(BooleanConstant booleanConstant)
public abstract void visit(NumericConstant numericConstant)
public abstract void visit(UnaryOperation unaryOperation)
public abstract void visit(TernaryOperator ternaryOperator)
public abstract void visit(RuntimeCall runtimeCall)
public abstract void visit(MapLiteral mapLiteral)
public abstract void visit(ArrayLiteral arrayLiteral)
public abstract void visit(NullLiteral nullLiteral)
public java.lang.Object evaluate(PropertyAccess propertyAccess)
NodeVisitor
PropertyAccess
node.evaluate
in interface NodeVisitor<java.lang.Object>
propertyAccess
- the node to evaluatepublic java.lang.Object evaluate(Identifier identifier)
NodeVisitor
Identifier
node.evaluate
in interface NodeVisitor<java.lang.Object>
identifier
- the node to evaluatepublic java.lang.Object evaluate(StringConstant text)
NodeVisitor
StringConstant
node.evaluate
in interface NodeVisitor<java.lang.Object>
text
- the node to evaluatepublic java.lang.Object evaluate(BinaryOperation binaryOperation)
NodeVisitor
BinaryOperation
node.evaluate
in interface NodeVisitor<java.lang.Object>
binaryOperation
- the node to evaluatepublic java.lang.Object evaluate(BooleanConstant booleanConstant)
NodeVisitor
BooleanConstant
node.evaluate
in interface NodeVisitor<java.lang.Object>
booleanConstant
- the node to evaluatepublic java.lang.Object evaluate(NumericConstant numericConstant)
NodeVisitor
NumericConstant
node.evaluate
in interface NodeVisitor<java.lang.Object>
numericConstant
- the node to evaluatepublic java.lang.Object evaluate(UnaryOperation unaryOperation)
NodeVisitor
UnaryOperation
node.evaluate
in interface NodeVisitor<java.lang.Object>
unaryOperation
- the node to evaluatepublic java.lang.Object evaluate(TernaryOperator ternaryOperator)
NodeVisitor
TernaryOperator
node.evaluate
in interface NodeVisitor<java.lang.Object>
ternaryOperator
- the node to evaluatepublic java.lang.Object evaluate(RuntimeCall runtimeCall)
NodeVisitor
RuntimeCall
node.evaluate
in interface NodeVisitor<java.lang.Object>
runtimeCall
- the node to evaluatepublic java.lang.Object evaluate(MapLiteral mapLiteral)
NodeVisitor
MapLiteral
node.evaluate
in interface NodeVisitor<java.lang.Object>
mapLiteral
- the node to evaluatepublic java.lang.Object evaluate(ArrayLiteral arrayLiteral)
NodeVisitor
ArrayLiteral
node.evaluate
in interface NodeVisitor<java.lang.Object>
arrayLiteral
- the node to evaluatepublic java.lang.Object evaluate(NullLiteral nullLiteral)
NodeVisitor
NullLiteral
node.evaluate
in interface NodeVisitor<java.lang.Object>
nullLiteral
- the node to evaluateCopyright © 2022 The Apache Software Foundation. All rights reserved.