Class ASTNENode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTNENode
- All Implemented Interfaces:
Node
,Renderable
Handles
arg1 != arg2
This operator requires that the LHS and RHS are both of the
same Class OR both are subclasses of java.lang.Number-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(InternalContextAdapter context) private String
getLiteral
(boolean left) jjtAccept
(ParserVisitor visitor, Object data) value
(InternalContextAdapter context) Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, dump, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, init, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString
-
Constructor Details
-
ASTNENode
public ASTNENode(int id) - Parameters:
id
-
-
ASTNENode
- Parameters:
p
-id
-
-
-
Method Details
-
jjtAccept
- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Returns:
- The Node execution result object.
- See Also:
-
evaluate
- Specified by:
evaluate
in interfaceNode
- Overrides:
evaluate
in classSimpleNode
- Returns:
- The evaluation result.
- Throws:
MethodInvocationException
- See Also:
-
getLiteral
-
value
- Specified by:
value
in interfaceNode
- Overrides:
value
in classSimpleNode
- Returns:
- The node value.
- Throws:
MethodInvocationException
- See Also:
-