Class ASTBinaryOperator
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTBinaryOperator
- All Implemented Interfaces:
Cloneable
,Node
,Renderable
- Direct Known Subclasses:
ASTComparisonNode
,ASTLogicalOperator
,ASTMathNode
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
get the string representing the mathematical operatorinit
(InternalContextAdapter context, Object data) literal()
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, evaluate, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
-
Constructor Details
-
ASTBinaryOperator
public ASTBinaryOperator(int id) -
ASTBinaryOperator
-
-
Method Details
-
init
- Specified by:
init
in interfaceNode
- Overrides:
init
in classSimpleNode
- Parameters:
context
-data
-- Returns:
- The init result.
- Throws:
TemplateInitException
- See Also:
-
getLiteralOperator
get the string representing the mathematical operator- Returns:
- operator string
-
literal
- Specified by:
literal
in interfaceNode
- Overrides:
literal
in classSimpleNode
- Returns:
- A literal.
- See Also:
-