fr.umlv.tatoo.runtime.node
Class Token<K,V>
java.lang.Object
fr.umlv.tatoo.runtime.node.Token<K,V>
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- TokenAST
public abstract class Token<K,V>
- extends Object
|
Constructor Summary |
Token(AST ast,
K kind,
V value)
|
| Methods inherited from interface fr.umlv.tatoo.runtime.node.Node |
accept |
Token
public Token(AST ast,
K kind,
V value)
isToken
public boolean isToken()
getKind
public K getKind()
getValue
public V getValue()
allNodeList
public List<Node> allNodeList()
nodeList
public List<Node> nodeList()
toString
public String toString()
- Overrides:
toString in class Object
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