fr.umlv.tatoo.cc.ebnf.ast.analysis
Class AbstractASTDiagnosticReporter

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.log.AbstractDiagnosticReporter<ASTDiagnosticReporter.WarningKey>
      extended by fr.umlv.tatoo.cc.ebnf.ast.analysis.AbstractASTDiagnosticReporter
All Implemented Interfaces:
DiagnosticReporter, ASTDiagnosticReporter
Direct Known Subclasses:
LogInfoASTDiagnosticReporter

public abstract class AbstractASTDiagnosticReporter
extends AbstractDiagnosticReporter<ASTDiagnosticReporter.WarningKey>
implements ASTDiagnosticReporter


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.umlv.tatoo.cc.ebnf.ast.analysis.ASTDiagnosticReporter
ASTDiagnosticReporter.ErrorKey, ASTDiagnosticReporter.WarningKey
 
Nested classes/interfaces inherited from interface fr.umlv.tatoo.cc.common.log.DiagnosticReporter
DiagnosticReporter.Key, DiagnosticReporter.Level
 
Constructor Summary
protected AbstractASTDiagnosticReporter(UserDefinedLevelMap<ASTDiagnosticReporter.WarningKey> userDefinedLevelMap)
           
 
Method Summary
 void error(ASTDiagnosticReporter.ErrorKey key, TreeAST node, Object... data)
           
protected  ResourceBundle getBundle()
           
protected abstract  void report(DiagnosticReporter.Key key, TreeAST node, Object... data)
           
 void warning(ASTDiagnosticReporter.WarningKey key, TreeAST node, Object... data)
           
 
Methods inherited from class fr.umlv.tatoo.cc.common.log.AbstractDiagnosticReporter
formatMessage, getLevel, isOnError, setOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.umlv.tatoo.cc.ebnf.ast.analysis.ASTDiagnosticReporter
isOnError
 

Constructor Detail

AbstractASTDiagnosticReporter

protected AbstractASTDiagnosticReporter(UserDefinedLevelMap<ASTDiagnosticReporter.WarningKey> userDefinedLevelMap)
Method Detail

error

public void error(ASTDiagnosticReporter.ErrorKey key,
                  TreeAST node,
                  Object... data)
Specified by:
error in interface ASTDiagnosticReporter

warning

public void warning(ASTDiagnosticReporter.WarningKey key,
                    TreeAST node,
                    Object... data)
Specified by:
warning in interface ASTDiagnosticReporter

report

protected abstract void report(DiagnosticReporter.Key key,
                               TreeAST node,
                               Object... data)

getBundle

protected ResourceBundle getBundle()
Specified by:
getBundle in class AbstractDiagnosticReporter<ASTDiagnosticReporter.WarningKey>