name.angoca.db2sa.core.lexical
Class AbstractLexicalAnalyzer

Package class diagram package AbstractLexicalAnalyzer
java.lang.Object
  extended by name.angoca.db2sa.core.lexical.AbstractLexicalAnalyzer
Direct Known Subclasses:
ImplLexicalAnalyzer

public abstract class AbstractLexicalAnalyzer
extends Object

This objects makes the analyzes over the phrase that the user is writing, and decomposes it in several tokens, that describe words or symbols. Some of them can be between quotation marks.
Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
AbstractLexicalAnalyzer()
           
 
Method Summary
abstract  ReturnOptions processPhrase(String phrase)
          Process a given phrase that represents a command and sends the options in the screen printer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLexicalAnalyzer

public AbstractLexicalAnalyzer()
Method Detail

processPhrase

public abstract ReturnOptions processPhrase(String phrase)
                                     throws InvalidGraphException
Process a given phrase that represents a command and sends the options in the screen printer.

Parameters:
phrase - Phrase to process.
Returns:
Set of options for the current phrase and the phrase to print.
Throws:
InvalidGraphException - When the graph that represents the grammar is invalid.


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.