|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.Token
Basic lexical token class for breaking apart an XPath expression into tokens
Scanner
Field Summary | |
static int |
AT
|
static int |
AXIS_NAME
|
static int |
COLON_COLON
|
static int |
COMMA
|
static int |
DOT
|
static int |
DOT_DOT
|
static int |
FUNCTION_NAME
|
static int |
LEFT_BRACKET
|
static int |
LEFT_PAREN
|
static int |
LITERAL
|
static int |
MAX_TYPE
|
static int |
NODE_TYPE
|
static int |
NOT_A_TOKEN
|
static int |
NUMBER
|
static int |
OPERATOR
|
static int |
RIGHT_BRACKET
|
static int |
RIGHT_PAREN
|
static int |
VARIABLE_REF
|
static int |
WILDCARD_NAME
|
Constructor Summary | |
Token(int t)
Construct a XPath expression token with passed type |
Method Summary | |
void |
dump(PrintWriter out,
int indent)
Output this token as a string for debugging purposes |
boolean |
equals(Token rhs)
Compare this token with another. |
int |
getType()
Return token type |
String |
toString()
Return a text representation of this Token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOT_A_TOKEN
public static final int LEFT_PAREN
public static final int RIGHT_PAREN
public static final int LEFT_BRACKET
public static final int RIGHT_BRACKET
public static final int DOT
public static final int DOT_DOT
public static final int AT
public static final int COMMA
public static final int COLON_COLON
public static final int OPERATOR
public static final int WILDCARD_NAME
public static final int NODE_TYPE
public static final int FUNCTION_NAME
public static final int AXIS_NAME
public static final int LITERAL
public static final int NUMBER
public static final int VARIABLE_REF
public static final int MAX_TYPE
Constructor Detail |
public Token(int t)
t
- type of tokenMethod Detail |
public int getType()
public boolean equals(Token rhs)
rhs
- Token to compare against
public String toString()
public void dump(PrintWriter out, int indent)
out
- PrintWriter object to write toindent
- Count of tabs ('\t') characters to output before the string
representation of the Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |