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 TypeMethodDescriptionbooleanevaluate(InternalContextAdapter context) private StringgetLiteral(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:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Returns:
- The Node execution result object.
- See Also:
-
evaluate
- Specified by:
evaluatein interfaceNode- Overrides:
evaluatein classSimpleNode- Returns:
- The evaluation result.
- Throws:
MethodInvocationException- See Also:
-
getLiteral
-
value
- Specified by:
valuein interfaceNode- Overrides:
valuein classSimpleNode- Returns:
- The node value.
- Throws:
MethodInvocationException- See Also:
-