|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.model.Production.ListElement
Inner Class for representing the unique Position of a Symbol inside a Production. Encapsulates the Symbol that is used on a certain position/place inside an Production.
Constructor Summary | |
Production.ListElement(Symbol ref,
boolean islhs)
|
Method Summary | |
boolean |
equals(Object o)
Returns true if they encapsulate the same Symbol. |
Symbol |
getRefSymbol()
Returns the encapsulated Symbol. |
boolean |
isCompatible(Production.ListElement le)
Return true if they encapsulate the same Symbol and they are on different Sides (LHS , RHS) of the Production. |
boolean |
looksequal(Production.ListElement le)
Return true if they encapsulate the same Symbol. |
void |
setRefSymbol(Symbol ref)
Sets ref as Symbol that should be encapsulated. |
String |
toDot(Derivat der)
Support for Dot File generation. |
String |
toDotLabel(Derivat der,
String offset)
Support for Dot File generation. |
String |
toString()
|
String |
toString2()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Production.ListElement(Symbol ref, boolean islhs)
Method Detail |
public void setRefSymbol(Symbol ref)
ref
- the Symbol that should be encapsulated.public Symbol getRefSymbol()
public String toString()
toString
in class Object
public String toString2()
public String toDot(Derivat der)
public String toDotLabel(Derivat der, String offset)
public boolean looksequal(Production.ListElement le)
public boolean isCompatible(Production.ListElement le)
public boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |