|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITokenList
| Method Summary | |
|---|---|
int |
add(IToken token)
Add a new token to the list |
IToken |
createToken()
Create a new token |
IToken |
get(int index)
Get the token at the specified index |
java.lang.String |
getCurrentGroup()
Returns the name of the group that is current active |
java.lang.String[] |
getGroupNames()
getGroupNames |
int[] |
getIgnoreSet()
Get the list of Token types to skip when scanning the source text |
java.lang.String |
getLanguage()
Get the language associated with this token list |
boolean |
isSealed()
This indicates whether this token list can be modified or if it has been sealed |
void |
seal()
Build the regexes for each token in this list |
void |
setCurrentGroup(int index)
|
void |
setCurrentGroup(java.lang.String groupName)
Set the currently active lexer group |
void |
setIgnoreSet(int[] set)
Set the list of Token types to skip when scanning the source text |
int |
size()
Get the number of tokens in this list |
| Method Detail |
|---|
IToken get(int index)
index - The index of the token to retrieve
java.lang.String getCurrentGroup()
void setCurrentGroup(java.lang.String groupName)
throws LexerException
groupName - The name of the group to activate
LexerExceptionvoid setCurrentGroup(int index)
index - java.lang.String[] getGroupNames()
int[] getIgnoreSet()
void setIgnoreSet(int[] set)
set - The set of token type to skipjava.lang.String getLanguage()
int add(IToken token)
token - the token to add to this list
IToken createToken()
void seal()
throws LexerException
LexerExceptionint size()
boolean isSealed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||