Class ASTBinaryOperator
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.SimpleNode
-
- org.apache.velocity.runtime.parser.node.ASTBinaryOperator
-
- All Implemented Interfaces:
java.lang.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 java.lang.StringgetLiteralOperator()get the string representing the mathematical operatorjava.lang.Objectinit(InternalContextAdapter context, java.lang.Object data)java.lang.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 java.lang.Object init(InternalContextAdapter context, java.lang.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 java.lang.String getLiteralOperator()
get the string representing the mathematical operator- Returns:
- operator string
-
literal
public java.lang.String literal()
- Specified by:
literalin interfaceNode- Overrides:
literalin classSimpleNode- Returns:
- A literal.
- See Also:
Node.literal()
-
-