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(Node node, Class<A> attributeType)
           
 Node getRoot()
           
 boolean isAttributeSupported(Class<?> attributeType)
           
<A> void
setAttribute(Node node, Class<A> attributeType, A attribute)
           
 void setRoot(Node 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 Node getRoot()

setRoot

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

isAttributeSupported

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

setAttribute

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

getAttribute

public <A> A getAttribute(Node 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