fr.umlv.tatoo.cc.parser.table
Class NodeDecl<I extends NodeItem<I>>
java.lang.Object
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
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
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()