name.angoca.db2sa.grammarReader.api
Class ImplementationInMemoryGrammarReader

Package class diagram package ImplementationInMemoryGrammarReader
java.lang.Object
  extended by name.angoca.db2sa.grammarReader.api.AbstractGrammarReader
      extended by name.angoca.db2sa.grammarReader.api.ImplementationInMemoryGrammarReader

public final class ImplementationInMemoryGrammarReader
extends AbstractGrammarReader

This class permits to load grammars in memory without using a file. The complete definition of the grammar is here. It's just for tests.

Control Version

Version:
1.0.0 2009-11-26
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
ImplementationInMemoryGrammarReader(Graph graph, String grammarName)
          Default constructor.
 
Method Summary
 String getDelimiters()
           
 StartingNode getStartingNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationInMemoryGrammarReader

public ImplementationInMemoryGrammarReader(Graph graph,
                                           String grammarName)
                                    throws Exception
Default constructor.

Parameters:
graph - Graph where the grammar will be
grammarName - Nothing
Throws:
Exception - If there is a problem.
Method Detail

getDelimiters

public String getDelimiters()
                     throws DelimitersIncorrectlyDefinedException
Specified by:
getDelimiters in class AbstractGrammarReader
Throws:
DelimitersIncorrectlyDefinedException

getStartingNode

public StartingNode getStartingNode()
                             throws AbstractDB2SAException
Specified by:
getStartingNode in class AbstractGrammarReader
Throws:
AbstractDB2SAException


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