fr.umlv.tatoo.cc.parser.table
Class NodeDecl<I extends NodeItem<I>>

java.lang.Object
  extended by fr.umlv.tatoo.cc.parser.table.NodeDecl<I>
Type Parameters:
I - type of the item.

public class NodeDecl<I extends NodeItem<I>>
extends Object

Author:
jcervell

Constructor Summary
NodeDecl(I firstKernelItem, Set<VersionDecl> compatibleVersion, int stateNo, NodeFactory<I> factory, NodeClosureComputer<I> closureComputer)
          Constructor for start states
NodeDecl(Set<I> kernelItems, Set<VersionDecl> compatibleVersion, int stateNo, NodeFactory<I> factory, NodeClosureComputer<I> closureComputer, VariableDecl associated)
          Constructor for other states
 
Method Summary
 String description()
           
 VariableDecl getAssociated()
           
 Set<VersionDecl> getCompatibleVersion()
           
 I getFirstKernelItem()
          Returns the kernel item of this start state, or null if this is a secondary state
 HashMap<NonTerminalDecl,NodeDecl<I>> getGotos()
           
 Set<I> getKernelItems()
           
 HashSet<I> getReduces()
           
 HashMap<TerminalDecl,NodeDecl<I>> getShifts()
           
 int getStateNo()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeDecl

public NodeDecl(I firstKernelItem,
                Set<VersionDecl> compatibleVersion,
                int stateNo,
                NodeFactory<I> factory,
                NodeClosureComputer<I> closureComputer)
Constructor for start states


NodeDecl

public NodeDecl(Set<I> kernelItems,
                Set<VersionDecl> compatibleVersion,
                int stateNo,
                NodeFactory<I> factory,
                NodeClosureComputer<I> closureComputer,
                VariableDecl associated)
Constructor for other states

Method Detail

getGotos

public HashMap<NonTerminalDecl,NodeDecl<I>> getGotos()

getReduces

public HashSet<I> getReduces()

getShifts

public HashMap<TerminalDecl,NodeDecl<I>> getShifts()

getStateNo

public int getStateNo()

toString

public String toString()
Overrides:
toString in class Object

description

public String description()

getKernelItems

public Set<I> getKernelItems()

getFirstKernelItem

public I getFirstKernelItem()
Returns the kernel item of this start state, or null if this is a secondary state

Returns:
the kernel item of this start state, or null if this is a secondary state

getAssociated

public VariableDecl getAssociated()

getCompatibleVersion

public Set<VersionDecl> getCompatibleVersion()