|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.process.LexicalAutomaton
The lexical automaton holds all automata for the the lexemes of a lexicon.
Constructor Summary | |
LexicalAutomaton(int lexemecount)
Create a lexical automaton. |
Method Summary | |
int |
getLexemeCount()
Return the count of lexemes. |
PatternAutomaton |
getLexemeDefinition(int index)
Returns the pattern automaton for a lexeme. |
java.lang.String |
getLexemeSymbol(int index)
Returns the name of a terminal symbol |
void |
setLexemeDefinition(int index,
PatternAutomaton definition)
Sets the pattern automaton for a lexeme |
void |
setLexemeSymbol(int index,
java.lang.String symbol)
Sets the name of a terminal symbol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LexicalAutomaton(int lexemecount)
lexemecount
- Count of lexemes.Method Detail |
public void setLexemeSymbol(int index, java.lang.String symbol)
index
- Index of the lexeme.symbol
- Name of the symbol.public java.lang.String getLexemeSymbol(int index)
index
- Index of the lexeme.
public void setLexemeDefinition(int index, PatternAutomaton definition)
index
- Index of the lexeme.definition
- Pattern automaton.public PatternAutomaton getLexemeDefinition(int index)
index
- Index of the lexeme.
public int getLexemeCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |