ujf.verimag.bip.parser
Class BipTreeError

java.lang.Object
  extended by ujf.verimag.bip.parser.BipTreeError

public class BipTreeError
extends java.lang.Object

Author:
arobert module to associate BIP object to AST tree. as AST tree is associated to text location, the association allows to point to the BIP source text when an error related to a declaration is detected

Constructor Summary
BipTreeError(ErrorMessage msg, CommonTokenStream theTokenStream)
           
 
Method Summary
 void addElement(EObject o, Tree t)
          associate a BIP object to an AST tree.
 void sendError(int errNb, java.lang.String[] params, EObject o)
          report an error associated to a BIP object
 void sendError(int errNb, java.lang.String[] params, Tree t)
          report an error associated to an AST tree
 void sendWarning(int errNb, java.lang.String[] params, EObject o)
          report a warning associated to a BIP object
 void sendWarning(int errNb, java.lang.String[] params, Tree t)
          report a warning associated to an AST tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BipTreeError

public BipTreeError(ErrorMessage msg,
                    CommonTokenStream theTokenStream)
Method Detail

addElement

public void addElement(EObject o,
                       Tree t)
associate a BIP object to an AST tree.

Parameters:
o - the BIP object
t - the AST tree

sendError

public void sendError(int errNb,
                      java.lang.String[] params,
                      EObject o)
report an error associated to a BIP object

Parameters:
errNb - : the error number
params - : the parameters associated to the error message
o - : the BIP object on which the error is related

sendError

public void sendError(int errNb,
                      java.lang.String[] params,
                      Tree t)
report an error associated to an AST tree

Parameters:
errNb - : the error number
params - : the parameters associated to the error message
o - : the AST tree on which the error is related

sendWarning

public void sendWarning(int errNb,
                        java.lang.String[] params,
                        EObject o)
report a warning associated to a BIP object

Parameters:
errNb - : the error number
params - : the parameters associated to the error message
o - : the BIP object on which the error is related

sendWarning

public void sendWarning(int errNb,
                        java.lang.String[] params,
                        Tree t)
report a warning associated to an AST tree

Parameters:
errNb - : the error number
params - : the parameters associated to the error message
o - : the AST tree on which the error is related