org.apache.velocity.runtime.parser.node
Class ASTEQNode

java.lang.Object
  extended by org.apache.velocity.runtime.parser.node.SimpleNode
      extended by org.apache.velocity.runtime.parser.node.ASTComparisonNode
          extended by 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

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
children, first, id, info, invalid, last, log, parent, parser, rsvc, state, templateName
 
Constructor Summary
ASTEQNode(int id)
           
ASTEQNode(Parser p, int id)
           
 
Method Summary
 boolean compareNonNumber(Object left, Object right)
           
 boolean compareNull(Object left, Object right)
          Always false by default, != and == subclasses must override this.
 boolean numberTest(int compareResult)
           
 
Methods inherited from class org.apache.velocity.runtime.parser.node.ASTComparisonNode
compareNumbers, evaluate, jjtAccept, value
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTEQNode

public ASTEQNode(int id)

ASTEQNode

public ASTEQNode(Parser p,
                 int id)
Method Detail

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.