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