|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editor.js.environment.LexemeListWalker
public abstract class LexemeListWalker
An abstract class for traversing a list of lexemes and performing a specific operation on each lexeme.
| Nested Class Summary | |
|---|---|
class |
LexemeListWalker.AbortException
Thrown if we wish to abort the walking operation |
| Field Summary | |
|---|---|
protected int |
currentIndex
The current index we are at |
protected LexemeList |
lexemeList
The list of lexemes |
protected int |
llSize
The cached LexemeList size |
| Constructor Summary | |
|---|---|
LexemeListWalker()
|
|
| Method Summary | |
|---|---|
protected abstract void |
onLexeme(Lexeme lexeme,
int index)
The method called on each lexeme |
int |
walkList(IParseState parseState,
int startIndex)
Walks the list of lexemes, calling "onLexeme" on each one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LexemeList lexemeList
protected int llSize
protected int currentIndex
| Constructor Detail |
|---|
public LexemeListWalker()
| Method Detail |
|---|
public int walkList(IParseState parseState,
int startIndex)
parseState - The current parse statestartIndex - The lexeme list index at which to begin walking
protected abstract void onLexeme(Lexeme lexeme,
int index)
throws LexemeListWalker.AbortException
lexeme - The lexeme to processindex - the index of the lexeme in the lexeme list
LexemeListWalker.AbortException - An exception to throw if we wish to abort the walking operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||