|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.StringRef
public class StringRef
This class represents a reference to a string object that can unify with other string objects. Uninstantiated values are represented by the null value. Such uninstantiated string objects can unify with other string objects (instantiated or uninstantiated ones).
Constructor Summary | |
---|---|
StringRef()
Creates a reference to a new string object with null as value. |
|
StringRef(java.lang.String string)
Creates a reference to a new string object with the given value. |
Method Summary | |
---|---|
int |
getID()
Returns the identifier of the string object. |
java.lang.String |
getString()
Returns the value of the string object of this reference. |
void |
unify(StringRef stringRef)
Unifies the string object of this reference with the string object of another reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringRef()
public StringRef(java.lang.String string)
string
- The value of the new string object.Method Detail |
---|
public void unify(StringRef stringRef) throws UnificationFailedException
stringRef
- The reference to the string object to be unified with the string object of
this object.
UnificationFailedException
- If unification fails.public java.lang.String getString()
public int getID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |