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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringget 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:
initin interfaceNode- Overrides:
initin 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:
literalin interfaceNode- Overrides:
literalin classSimpleNode- Returns:
- A literal.
- See Also:
-