fr.umlv.tatoo.cc.ebnf.ast
Class TokenAST<V>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.node.Token<fr.umlv.tatoo.cc.lexer.ebnf.parser.TerminalEnum,V>
      extended by fr.umlv.tatoo.cc.ebnf.ast.TokenAST<V>
All Implemented Interfaces:
Node

public class TokenAST<V>
extends Token<fr.umlv.tatoo.cc.lexer.ebnf.parser.TerminalEnum,V>


Constructor Summary
TokenAST(AST ast, fr.umlv.tatoo.cc.lexer.ebnf.parser.TerminalEnum kind, V value)
           
 
Method Summary
<R,P,E extends Exception>
R
accept(TreeASTVisitor<? extends R,? super P,? extends E> visitor, P parameter)
           
 AST getAST()
           
<A> A
getAttribute(Class<A> attributeType)
           
 Binding getBinding()
          This implementation always return null.
 Node getParent()
           
<A> void
setAttribute(Class<A> attributeType, A attribute)
           
protected  void setParent(Node parent)
           
 
Methods inherited from class fr.umlv.tatoo.runtime.node.Token
allNodeList, getKind, getValue, isToken, nodeList, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenAST

public TokenAST(AST ast,
                fr.umlv.tatoo.cc.lexer.ebnf.parser.TerminalEnum kind,
                V value)
Method Detail

accept

public <R,P,E extends Exception> R accept(TreeASTVisitor<? extends R,? super P,? extends E> visitor,
                                          P parameter)
         throws E extends Exception
Throws:
E extends Exception

getAST

public AST getAST()
Specified by:
getAST in interface Node

getParent

public Node getParent()
Specified by:
getParent in interface Node

setParent

protected void setParent(Node parent)

getBinding

public Binding getBinding()
This implementation always return null.

Specified by:
getBinding in interface Node

getAttribute

public final <A> A getAttribute(Class<A> attributeType)
Specified by:
getAttribute in interface Node

setAttribute

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