org.apache.velocity.runtime.parser.node
Class ASTEQNode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTComparisonNode
org.apache.velocity.runtime.parser.node.ASTEQNode
- All Implemented Interfaces:
- Node, Renderable
- Direct Known Subclasses:
- ASTNENode
public class ASTEQNode
- extends ASTComparisonNode
Handles arg1 == arg2
This operator requires that the LHS and RHS are both of the
same Class, both numbers or both coerce-able to strings.
- Author:
- Will Glass-Husain, Peter Romianowski, Nathan Bubna
| Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
children, first, id, info, invalid, last, log, parent, parser, rsvc, state, templateName |
| 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 |
ASTEQNode
public ASTEQNode(int id)
ASTEQNode
public ASTEQNode(Parser p,
int id)
compareNull
public boolean compareNull(Object left,
Object right)
- Description copied from class:
ASTComparisonNode
- Always false by default, != and == subclasses must override this.
- Overrides:
compareNull in class ASTComparisonNode
numberTest
public boolean numberTest(int compareResult)
- Specified by:
numberTest in class ASTComparisonNode
compareNonNumber
public boolean compareNonNumber(Object left,
Object right)
- Overrides:
compareNonNumber in class ASTComparisonNode
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.