|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaa.util.Lexer
This class performs tokenizing a input string to separate string tokens.
History:
Field Summary | |
private static int |
m_iMAX_TOKENS
Maximum number of tokens. |
Constructor Summary | |
Lexer()
|
Method Summary | |
private static java.lang.String[] |
compactString(java.lang.String[] p_straToken,
int p_iTokens)
Returns an array of tokens that does not have null elements. |
static java.lang.String[] |
getTokens(java.lang.String p_strInput)
Extracts string tokens from the given input string, and returns them. |
private static java.lang.String |
removeBlank(java.lang.String p_strInput)
Removes blanks in the front part of the specified string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int m_iMAX_TOKENS
Constructor Detail |
public Lexer()
Method Detail |
private static java.lang.String removeBlank(java.lang.String p_strInput)
p_strInput
- an input string
null
otherwise.private static java.lang.String[] compactString(java.lang.String[] p_straToken, int p_iTokens)
p_straToken
- an array of string tokens which has null elements.
p_iTokens the number of no-null string tokens in the p_straToken
array.
null
otherwise.public static java.lang.String[] getTokens(java.lang.String p_strInput)
p_strInput
- the input string.
null
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |