fr.umlv.tatoo.cc.ebnf
Class EBNFASTImpl

java.lang.Object
  extended by fr.umlv.tatoo.cc.ebnf.EBNFASTImpl
All Implemented Interfaces:
AST

public class EBNFASTImpl
extends Object
implements AST


Constructor Summary
EBNFASTImpl()
           
 
Method Summary
<A> A
getAttribute(TreeAST node, Class<A> attributeType)
           
 NodeAST getRoot()
           
 boolean isAttributeSupported(Class<?> attributeType)
           
<A> void
setAttribute(TreeAST node, Class<A> attributeType, A attribute)
           
 void setRoot(TreeAST root)
           
<R,P,E extends Exception>
R
visit(TreeASTVisitor<? extends R,? super P,? extends E> visitor, P parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EBNFASTImpl

public EBNFASTImpl()
Method Detail

getRoot

public NodeAST getRoot()

setRoot

public void setRoot(TreeAST root)
Specified by:
setRoot in interface AST

isAttributeSupported

public boolean isAttributeSupported(Class<?> attributeType)
Specified by:
isAttributeSupported in interface AST

setAttribute

public <A> void setAttribute(TreeAST node,
                             Class<A> attributeType,
                             A attribute)
Specified by:
setAttribute in interface AST

getAttribute

public <A> A getAttribute(TreeAST node,
                          Class<A> attributeType)
Specified by:
getAttribute in interface AST

visit

public <R,P,E extends Exception> R visit(TreeASTVisitor<? extends R,? super P,? extends E> visitor,
                                         P parameter)
        throws E extends Exception
Specified by:
visit in interface AST
Throws:
E extends Exception