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, valueinit, literalchildrenAccept, cleanupParserAndTokens, dump, dump, 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, toStringpublic ASTEQNode(int id)
public ASTEQNode(Parser p, int id)
public boolean compareNull(Object left, Object right)
ASTComparisonNodecompareNull in class ASTComparisonNodepublic String getLiteralOperator()
ASTComparisonNodegetLiteralOperator in class ASTComparisonNodepublic boolean numberTest(int compareResult)
ASTComparisonNodenumberTest in class ASTComparisonNodepublic boolean compareNonNumber(Object left, Object right)
compareNonNumber in class ASTComparisonNodeCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.