public class ASTEQNode extends ASTComparisonNode
arg1 == arg2
This operator requires that the LHS and RHS are both of the
same Class, both numbers or both coerce-able to strings.Constructor and Description |
---|
ASTEQNode(int id) |
ASTEQNode(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareNonNumber(Object left,
Object right) |
boolean |
compareNull(Object left,
Object right)
Always false by default, != and == subclasses must override this.
|
String |
getLiteralOperator()
get the string representing the mathematical operator
|
boolean |
numberTest(int compareResult)
performs the actual comparison
|
compareNumbers, evaluate, jjtAccept, value
init, literal
childrenAccept, cleanupParserAndTokens, dump, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString
public ASTEQNode(int id)
public ASTEQNode(Parser p, int id)
public boolean compareNull(Object left, Object right)
ASTComparisonNode
compareNull
in class ASTComparisonNode
public String getLiteralOperator()
ASTComparisonNode
getLiteralOperator
in class ASTComparisonNode
public boolean numberTest(int compareResult)
ASTComparisonNode
numberTest
in class ASTComparisonNode
public boolean compareNonNumber(Object left, Object right)
compareNonNumber
in class ASTComparisonNode
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.