fr.umlv.tatoo.runtime.node
Class AbstractNode

java.lang.Object
  extended by fr.umlv.tatoo.runtime.node.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
AliasDefAST, DirectiveDefAST, EnhancedDefAST, ImportDefAST, MacroDefAST, NonTerminalDefAST, PriorityDefAST, PriorityVarAST, ProductionDefAST, ProductionIdAndVersionDefAST, QuotedIdVarAST, RootDefAST, RuleDefAST, SimpleNode, StartNonTerminalSetDefAST, TerminalDefAST, TypeVarAST, UnquotedIdVarAST, VariableTypeDefAST, VersionDefAST, VersionVarAST

public abstract class AbstractNode
extends Object


Constructor Summary
protected AbstractNode(AST ast, List<Node> allNodeList)
           
 
Method Summary
 List<Node> allNodeList()
           
 AST getAST()
           
<A> A
getAttribute(Class<A> attributeType)
           
 Binding getBinding()
          This implementation always return null.
 Node getParent()
           
 boolean isToken()
           
 List<Node> nodeList()
           
<A> void
setAttribute(Class<A> attributeType, A attribute)
           
protected  void setParent(Node parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.umlv.tatoo.runtime.node.Node
accept, getKind
 

Constructor Detail

AbstractNode

protected AbstractNode(AST ast,
                       List<Node> allNodeList)
Method Detail

isToken

public boolean isToken()

allNodeList

public List<Node> allNodeList()

toString

public String toString()
Overrides:
toString in class Object

nodeList

public List<Node> nodeList()

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