|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--sjm.engine.Unification
A Unification is a collection of variables. Structures and variables use unifications to keep track of the variable assignments that make a proof work. The unification class itself provides behavior for adding and accessing variables.
| Field Summary | |
static Unification |
empty
|
| Constructor Summary | |
Unification()
Creates an empty unification. |
|
Unification(Variable v)
Creates a unification that starts off including a single variable. |
|
| Method Summary | |
Unification |
addVariable(Variable v)
Adds a variable to this unification. |
Unification |
append(Unification u)
Adds all the variables of another unification to this one. |
java.util.Enumeration |
elements()
Return the variables in this unification. |
int |
size()
Returns the number of variables in this unification. |
java.lang.String |
toString()
Returns a string representation of this unification. |
java.lang.String |
toStringQuiet()
Returns a string representation of this unification, without printing variable names. |
void |
unbind()
Asks all the contained variables to unbind. |
protected Variable |
variableAt(int i)
|
protected java.util.Vector |
vector()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final Unification empty
| Constructor Detail |
public Unification()
public Unification(Variable v)
Variable - the variable with which the unification
begins| Method Detail |
public Unification addVariable(Variable v)
Variable - the variable to add to this unificationpublic Unification append(Unification u)
Unification - the unification to appendpublic java.util.Enumeration elements()
public int size()
public java.lang.String toString()
public java.lang.String toStringQuiet()
public void unbind()
protected Variable variableAt(int i)
protected java.util.Vector vector()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||