|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectname.angoca.db2sa.core.lexical.AbstractLexicalAnalyzer
name.angoca.db2sa.core.lexical.ImplLexicalAnalyzer
public final class ImplLexicalAnalyzer
This is the implementation of the lexical analyzer.
Control Version
| Method Summary | |
|---|---|
static void |
destroyInstance()
Destroys the instance. |
static ImplLexicalAnalyzer |
getInstance()
Creates the only possible instance of this object. |
ReturnOptions |
processPhrase(String phrase)
Process a given phrase that represents a command and sends the options in the screen printer. |
protected String |
replaceLastToken(String phrase,
List<Token> tokens,
GraphAnswer answer)
Retrieves a phrase with the last token modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ImplLexicalAnalyzer getInstance()
throws InvalidGraphException
InvalidGraphException - When there is a problem creating the graph.public static void destroyInstance()
public ReturnOptions processPhrase(String phrase)
throws InvalidGraphException
AbstractLexicalAnalyzer
processPhrase in class AbstractLexicalAnalyzerphrase - Phrase to process.
InvalidGraphException - When the graph that represents the grammar is invalid.
protected String replaceLastToken(String phrase,
List<Token> tokens,
GraphAnswer answer)
phrase - Original phrase.tokens - Set of token that represents the original phrase.answer - New phrase returned by the grammatical analyzer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
