|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sc3d.apt.sss.v3.NDFA.Transition
public static class NDFA.Transition
Represents a transition of an NDFA. Instances are immutable, except for the 'ndfa' field which should be filled in by the caller when it is first needed.
Field Summary | |
---|---|
Grammar |
g
A Grammar describing the Tree that is constructed by following this Transition, or 'null'. |
NDFA |
ndfa
An NDFA describing the grammar of the contents of the bracket, if this is a 'bracket shift' Transition and its NDFA has already been calculated, or 'null' if this is not a 'bracket shift' Transition or the value has not yet been calculated. |
Grammar.Production |
p
A Grammar.Production to apply when following this 'reduce' Transition, or 'null' if this is not a 'reduce' Transition. |
NDFA.State |
to
The State to which this Transition leads. |
Constructor Summary | |
---|---|
NDFA.Transition(NDFA.State to)
Constructs a 'no-op' Transition, given values for its non-null fields. |
|
NDFA.Transition(NDFA.State to,
Grammar.NonTerminal g)
Constructs an 'open' Transition, given values for its non-null fields. |
|
NDFA.Transition(NDFA.State to,
Grammar.Production p)
Constructs a 'reduce' Transition, given values for its non-null fields. |
|
NDFA.Transition(NDFA.State to,
Grammar.Terminal g)
Constructs a 'shift' Transition (bracket or otherwise), given values for its non-null fields. |
Method Summary | |
---|---|
java.lang.String |
toString()
Returns a brief decription of this Transition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final NDFA.State to
public final Grammar g
public final Grammar.Production p
public NDFA ndfa
Constructor Detail |
---|
public NDFA.Transition(NDFA.State to)
public NDFA.Transition(NDFA.State to, Grammar.Terminal g)
public NDFA.Transition(NDFA.State to, Grammar.NonTerminal g)
public NDFA.Transition(NDFA.State to, Grammar.Production p)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |