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
public abstract class ASTBinaryOperator extends SimpleNode
-
-
Constructor Summary
Constructors Constructor Description ASTBinaryOperator(int id)ASTBinaryOperator(Parser p, int id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetLiteralOperator()get the string representing the mathematical operatorObjectinit(InternalContextAdapter context, Object data)Stringliteral()-
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 Detail
-
ASTBinaryOperator
public ASTBinaryOperator(int id)
-
ASTBinaryOperator
public ASTBinaryOperator(Parser p, int id)
-
-
Method Detail
-
init
public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
- Specified by:
initin interfaceNode- Overrides:
initin classSimpleNode- Returns:
- The init result.
- Throws:
TemplateInitException- See Also:
Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
-
getLiteralOperator
public abstract String getLiteralOperator()
get the string representing the mathematical operator- Returns:
- operator string
-
literal
public String literal()
- Specified by:
literalin interfaceNode- Overrides:
literalin classSimpleNode- Returns:
- A literal.
- See Also:
Node.literal()
-
-