|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.Token com.novell.xml.xpath.OperatorToken
Class representing an XPath expression language operator token
Scanner
Field Summary | |
static int |
AND
The logical "and" operator "and" |
static int |
DIV
The multiplicative "division" operator "div" |
static int |
EQUALS
The "equals" operator "=" |
static int |
GREATER_THAN
The conditional "greater than" operator ">" |
static int |
GREATER_THAN_EQUALS
The conditional "greater than or equal to" operator ">=" |
static int |
LESS_THAN
The conditional "less than" operator "<" |
static int |
LESS_THAN_EQUALS
The conditional "less than or equal to" operator "<=" |
static int |
MINUS
The "subtraction" or unary "negation" operator "-" |
static int |
MOD
The multiplicative "modulus" operator "mod" |
static int |
MUL
The "multiplication" operator "*" |
static int |
NOT_AN_OPERATOR
Indicates an invalid operator value |
static int |
NOT_EQUALS
The "not equals" operator "! |
static int |
OR
The logical "or" operator "or" |
static int |
PIPE
The node-set "union" operator "|" |
static int |
PLUS
The "addition" operator "+" |
static int |
SLASH
The path join operator "/" |
static int |
SLASH_SLASH
The path join operator "//" |
Fields inherited from class com.novell.xml.xpath.Token |
AT, AXIS_NAME, COLON_COLON, COMMA, DOT, DOT_DOT, FUNCTION_NAME, LEFT_BRACKET, LEFT_PAREN, LITERAL, MAX_TYPE, NODE_TYPE, NOT_A_TOKEN, NUMBER, OPERATOR, RIGHT_BRACKET, RIGHT_PAREN, VARIABLE_REF, WILDCARD_NAME |
Constructor Summary | |
OperatorToken(int opType)
Construct a token representing the passed operator |
Method Summary | |
boolean |
equals(Token rhs)
Compare this Token to passed Token |
int |
getOperator()
Return numeric value of operator token (OperatorToken.PLUS, OperatorToken.AND, etc.) |
static int |
getOpType(String opString)
Return the numeric value for an operator given the text string representing the operator |
String |
toString()
Return text representing this OperatorToken |
Methods inherited from class com.novell.xml.xpath.Token |
dump, getType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOT_AN_OPERATOR
public static final int NOT_EQUALS
public static final int MUL
public static final int PLUS
public static final int MINUS
public static final int SLASH
public static final int SLASH_SLASH
public static final int LESS_THAN
public static final int LESS_THAN_EQUALS
public static final int EQUALS
public static final int GREATER_THAN
public static final int GREATER_THAN_EQUALS
public static final int AND
public static final int DIV
public static final int MOD
public static final int OR
public static final int PIPE
Constructor Detail |
public OperatorToken(int opType)
opType
- numeric operator value (OperatorToken.PLUS, OperatorToken.MOD, etc.)Method Detail |
public boolean equals(Token rhs)
equals
in class Token
rhs
- Token to compare against
public String toString()
toString
in class Token
public int getOperator()
public static int getOpType(String opString)
opString
- string representing operator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |