Class ASTGTNode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTBinaryOperator
org.apache.velocity.runtime.parser.node.ASTComparisonNode
org.apache.velocity.runtime.parser.node.ASTGTNode
- All Implemented Interfaces:
Cloneable,Node,Renderable
Handles arg1 > arg2
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the string representing the mathematical operatorbooleannumberTest(int compareResult) performs the actual comparisonMethods inherited from class org.apache.velocity.runtime.parser.node.ASTComparisonNode
compareNonNumber, compareNull, compareNumbers, evaluate, jjtAccept, valueMethods inherited from class org.apache.velocity.runtime.parser.node.ASTBinaryOperator
init, literalMethods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString
-
Constructor Details
-
ASTGTNode
public ASTGTNode(int id) -
ASTGTNode
-
-
Method Details
-
getLiteralOperator
Description copied from class:ASTComparisonNodeget the string representing the mathematical operator- Specified by:
getLiteralOperatorin classASTComparisonNode- Returns:
- operator string
-
numberTest
public boolean numberTest(int compareResult) Description copied from class:ASTComparisonNodeperforms the actual comparison- Specified by:
numberTestin classASTComparisonNode- Parameters:
compareResult-- Returns:
- comparison result
-