fr.umlv.tatoo.cc.parser.xml
Class ParserXMLDigester

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.xml.XMLDigester
      extended by fr.umlv.tatoo.cc.common.xml.AbstractXMLDigester
          extended by fr.umlv.tatoo.cc.parser.xml.ParserXMLDigester
All Implemented Interfaces:
ParserTableBuilder

public class ParserXMLDigester
extends AbstractXMLDigester
implements ParserTableBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from class fr.umlv.tatoo.cc.common.xml.AbstractXMLDigester
AbstractXMLDigester.DefaultSAXlet, AbstractXMLDigester.SAXlet
 
Constructor Summary
ParserXMLDigester(GrammarFactory factory)
           
 
Method Summary
 ParserTableDecl createParserTableDecl(ActionDeclFactory actionFactory, TableFactoryMethod<?> method, ConflictResolverPolicy conflictResolver, AbstractConflictDiagnosticReporter reporter, File log)
          Creates a parser table.
 EBNFSupport getEBNFSupport()
          Returns the EBNF support.
 GrammarRepository getGrammarItemsRepository()
          Return the grammar factory.
 String getRootElementName()
          Retruns the name of the root element of the XML file.
protected  AbstractXMLDigester.SAXlet[] getSAXLets()
          Retruns the saxlets registered by the digester.
 Unit getUnit()
          Retruns the corresponding unit type.
 boolean isFatalError()
          True if the parser table builder is not complete.
 
Methods inherited from class fr.umlv.tatoo.cc.common.xml.AbstractXMLDigester
handler, isSaxletsRegistered, registerSaxlets, unregisterSaxlets
 
Methods inherited from class fr.umlv.tatoo.cc.common.xml.XMLDigester
computeId, computeId, computeId, computeId, convert, convert, getLocator, parse, parse, reportError, reportError, setLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserXMLDigester

public ParserXMLDigester(GrammarFactory factory)
Method Detail

createParserTableDecl

public ParserTableDecl createParserTableDecl(ActionDeclFactory actionFactory,
                                             TableFactoryMethod<?> method,
                                             ConflictResolverPolicy conflictResolver,
                                             AbstractConflictDiagnosticReporter reporter,
                                             File log)
Description copied from interface: ParserTableBuilder
Creates a parser table.

Specified by:
createParserTableDecl in interface ParserTableBuilder
Parameters:
actionFactory - a factory that numbering actions by type (shift, reduce etc.)
method - the method used to create the table SLR, LR, LALR.
conflictResolver - the conflict resolver.
reporter - the conflict reporter used to report conflicts
log - the log file or null.
Returns:
a parser table.

isFatalError

public boolean isFatalError()
Description copied from interface: ParserTableBuilder
True if the parser table builder is not complete.

Specified by:
isFatalError in interface ParserTableBuilder
Returns:
true if the parser table builder is not complete.

getEBNFSupport

public EBNFSupport getEBNFSupport()
Description copied from interface: ParserTableBuilder
Returns the EBNF support.

Specified by:
getEBNFSupport in interface ParserTableBuilder
Returns:
the EBNF support.

getGrammarItemsRepository

public GrammarRepository getGrammarItemsRepository()
Description copied from interface: ParserTableBuilder
Return the grammar factory.

Specified by:
getGrammarItemsRepository in interface ParserTableBuilder
Returns:
the grammar factory.

getRootElementName

public String getRootElementName()
Description copied from class: AbstractXMLDigester
Retruns the name of the root element of the XML file.

Specified by:
getRootElementName in class AbstractXMLDigester
Returns:
the name of the root element of the XML file.

getUnit

public Unit getUnit()
Description copied from class: AbstractXMLDigester
Retruns the corresponding unit type.

Specified by:
getUnit in class AbstractXMLDigester
Returns:
the unit type to parse.

getSAXLets

protected AbstractXMLDigester.SAXlet[] getSAXLets()
Description copied from class: AbstractXMLDigester
Retruns the saxlets registered by the digester.

Specified by:
getSAXLets in class AbstractXMLDigester
Returns:
the saxlets registered by the digester.