name.angoca.db2sa.grammarReader.api
Class AbstractGrammarReader

Package class diagram package AbstractGrammarReader
java.lang.Object
  extended by name.angoca.db2sa.grammarReader.api.AbstractGrammarReader
Direct Known Subclasses:
ImplementationXMLGrammarReader

public abstract class AbstractGrammarReader
extends Object

This is the specification of the class that builds the grammar graph from the grammar file. The implementation of this class has to have a construction with a Graph as parameter. The initialization is done via reflection, and that is the only constructor that it uses.

Control Version

Version:
1.1.0 2009-11-22
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
AbstractGrammarReader()
           
 
Method Summary
abstract  String getDelimiters()
          Returns the delimiters that separates the tokens.
abstract  StartingNode getStartingNode()
          Returns the token that is the entering point to the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGrammarReader

public AbstractGrammarReader()
Method Detail

getDelimiters

public abstract String getDelimiters()
                              throws DelimitersIncorrectlyDefinedException
Returns the delimiters that separates the tokens.

Returns:
the delimiters
Throws:
DelimitersIncorrectlyDefinedException - If the delimiters are wrongly defined in the grammar.

getStartingNode

public abstract StartingNode getStartingNode()
                                      throws AbstractDB2SAException
Returns the token that is the entering point to the graph.

Returns:
the startingToken.
Throws:
AbstractDB2SAException - If there is null parameter; If the graph is invalid; If the grammar file in invalid.


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