fr.umlv.tatoo.cc.ebnf.ast
Class TokenAST<V>
java.lang.Object
fr.umlv.tatoo.cc.ebnf.ast.TokenAST<V>
- All Implemented Interfaces:
- TreeAST
public class TokenAST<V>
- extends Object
- implements TreeAST
isToken
public boolean isToken()
- Specified by:
isToken
in interface TreeAST
toString
public String toString()
- Overrides:
toString
in class Object
getKind
public fr.umlv.tatoo.cc.lexer.ebnf.parser.TerminalEnum getKind()
- Specified by:
getKind
in interface TreeAST
getValue
public V getValue()
accept
public <R,P,E extends Exception> R accept(TreeASTVisitor<? extends R,? super P,? extends E> visitor,
P parameter)
throws E extends Exception
- Specified by:
accept
in interface TreeAST
- Throws:
E extends Exception
getAST
public AST getAST()
- Specified by:
getAST
in interface TreeAST
getParent
public NodeAST getParent()
- Specified by:
getParent
in interface TreeAST
setParent
protected void setParent(NodeAST parent)
getAttribute
public final <A> A getAttribute(Class<A> attributeType)
- Specified by:
getAttribute
in interface TreeAST
setAttribute
public final <A> void setAttribute(Class<A> attributeType,
A attribute)
- Specified by:
setAttribute
in interface TreeAST