|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.analysis.TextToken
Field Summary | |
static int |
ACRONYM
|
static int |
ALPHA
|
static int |
ALPHANUM
|
static int |
DIGIT
|
static int |
EMAIL
|
static int |
EOF
|
static TextToken |
EOF_TOKEN
|
static int |
FLOAT
|
static int |
HOST
|
static int |
LETTER
|
static int |
NUMBER
|
static int |
P
|
static java.lang.String[] |
types
|
static int |
WS
|
static TextToken |
WS_TOKEN
|
Constructor Summary | |
TextToken()
|
|
TextToken(int type)
Constructor for the Token object |
|
TextToken(int type,
java.lang.CharSequence text)
Constructor for the Token object |
|
TextToken(int type,
java.lang.CharSequence text,
int start)
Constructor for the Token object |
|
TextToken(int type,
java.lang.CharSequence text,
int start,
int end)
Constructor for the Token object |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
void |
consume(TextToken token)
|
void |
consumeNext()
Consume the next character in the current buffer by incrementing the end offset. |
int |
endOffset()
|
boolean |
equals(java.lang.Object obj)
|
char |
getChar()
|
java.lang.CharSequence |
getCharSequence()
|
java.lang.String |
getText()
|
int |
getType()
|
int |
hashCode()
|
boolean |
isAlpha()
|
int |
length()
|
void |
set(int type,
java.lang.CharSequence text,
int start)
|
void |
setText(java.lang.String text)
|
void |
setType(int type)
|
int |
startOffset()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ALPHA
public static final int ALPHANUM
public static final int DIGIT
public static final int EOF
public static final int FLOAT
public static final int LETTER
public static final int NUMBER
public static final int P
public static final int WS
public static final int HOST
public static final int EMAIL
public static final int ACRONYM
public static final TextToken WS_TOKEN
public static final TextToken EOF_TOKEN
public static final java.lang.String[] types
Constructor Detail |
public TextToken()
public TextToken(int type, java.lang.CharSequence text)
type
- Description of the Parametertext
- Description of the Parameterpublic TextToken(int type, java.lang.CharSequence text, int start)
type
- Description of the Parametertext
- Description of the Parameterstart
- Description of the Parameterpublic TextToken(int type, java.lang.CharSequence text, int start, int end)
type
- Description of the Parametertext
- Description of the Parameterstart
- Description of the Parameterend
- Description of the Parameterpublic TextToken(int type)
type
- Description of the ParameterMethod Detail |
public void set(int type, java.lang.CharSequence text, int start)
public int startOffset()
public int endOffset()
public boolean isAlpha()
public void consumeNext()
public void consume(TextToken token)
public char getChar()
public java.lang.CharSequence getCharSequence()
public java.lang.String getText()
public int getType()
public void setType(int type)
public void setText(java.lang.String text)
public int length()
public int hashCode()
public boolean equals(java.lang.Object obj)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |