|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--torero.model.AttributeAssingnment.AttribKey
The inner AttribKey class is used to represent the the elements that can be assigned to each other. It consists of a ListElement and an Attribute that is from the list of Attributes the referencing Symbol of the ListElement has.
Constructor Summary | |
AttributeAssingnment.AttribKey(Production.ListElement le,
Attribute attrib)
This constructor takes a ListElement and an Attribute from the list of Attributes the referencing Symbol of the ListElement has. |
Method Summary | |
boolean |
equals(Object o)
Two AttribKeys are equal if they are referencing to the same ListElement and Attribute. |
Attribute |
getAttribute()
Returns the Attribute part of the AttribKey Object. |
Production.ListElement |
getListElement()
Returns the ListElement part of the AttribKey Object. |
int |
hashCode()
|
boolean |
isCompatible(AttributeAssingnment.AttribKey ak)
Two AttribKeys are compatible if their ListElements are compatible and they have the same Attribute. |
boolean |
isMemberOf(Production pr)
Checks if this AttribKey is an Inner Object of the given Production (is defined in it's scope). |
boolean |
looksequal(AttributeAssingnment.AttribKey ak)
Two AttribKeys look equal if their ListElements are referencing to the same Symbol and they have the same Attribute. |
String |
stringRep()
Returns a unique Key for this Object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeAssingnment.AttribKey(Production.ListElement le, Attribute attrib)
le
- takes a ListElementattrib
- an Attribute from the list of Attributes the referencing Symbol of the ListElement hasMethod Detail |
public Production.ListElement getListElement()
public Attribute getAttribute()
public String stringRep()
public String toString()
toString
in class Object
public boolean isMemberOf(Production pr)
pr
- takes the production used as criterionpublic boolean equals(Object o)
equals
in class Object
public boolean looksequal(AttributeAssingnment.AttribKey ak)
public boolean isCompatible(AttributeAssingnment.AttribKey ak)
Production.ListElement
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |