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 String
getLiteralOperator()
get the string representing the mathematical operatorObject
init(InternalContextAdapter context, Object data)
String
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 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:
init
in interfaceNode
- Overrides:
init
in 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:
literal
in interfaceNode
- Overrides:
literal
in classSimpleNode
- Returns:
- A literal.
- See Also:
Node.literal()
-
-