|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.man.cs.rainbow.rapa.data.Expression
|
+--uk.ac.man.cs.rainbow.rapa.data.Application
|
+--uk.ac.man.cs.rainbow.rapa.data.Binary
| Inner Class Summary | |
static class |
Binary.Add
Addition operator. |
static class |
Binary.Conj
Boolean conjunction operator. |
static class |
Binary.Disj
Boolean disjunction operator. |
static class |
Binary.Div
Division operator. |
static class |
Binary.Equal
Equality operator. |
static class |
Binary.GT
"Greater-than" comparison operator. |
static class |
Binary.LT
"Less-than" comparison operator. |
static class |
Binary.Mul
Multiplication operator. |
static class |
Binary.Sub
Subtraction operator. |
| Field Summary | |
protected Value |
e1
|
protected Value |
e2
|
| Fields inherited from class uk.ac.man.cs.rainbow.rapa.data.Application |
args, name, resultType |
| Constructor Summary | |
Binary()
|
|
Binary(Value e1,
Value e2,
Type resultType)
|
|
| Method Summary | |
Value |
apply(Unifier u)
Apply a unifier to this value to get a new value. |
Value |
apply(Value[] args)
|
abstract Value |
apply(Value x,
Value y)
|
boolean |
equals(Value o)
|
abstract String |
getName()
|
int |
hashCode()
|
boolean |
hasVariable()
|
int |
inputSize()
|
boolean |
occurs(Substitution s,
Variable v)
Check whether the variable occurs in this value under the given substitution. |
Value |
subst(GeneralSubstitution s)
Apply a substitution to this value to get a new value. |
Value |
subst(Substitution s)
Apply a substitution to this value to get a new value. |
String |
toString()
|
Substitution |
unify(Substitution s,
Value e)
Get the substitution which unifies this value with the given value, after applying the given substitution. |
| Methods inherited from class uk.ac.man.cs.rainbow.rapa.data.Application |
evaluate, getArg, getNodeType, getResultType, numArguments |
| Methods inherited from class uk.ac.man.cs.rainbow.rapa.data.Expression |
compatableWith, equals |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Value e1
protected Value e2
| Constructor Detail |
public Binary(Value e1,
Value e2,
Type resultType)
public Binary()
| Method Detail |
public int inputSize()
public abstract Value apply(Value x,
Value y)
public Value apply(Value[] args)
public abstract String getName()
getName in class Applicationpublic String toString()
toString in class Applicationpublic Value apply(Unifier u)
Valueapply in class Application
public boolean occurs(Substitution s,
Variable v)
Valueoccurs in class Application
public Substitution unify(Substitution s,
Value e)
throws NotUnifiable
Valueunify in class Applicationuk.ac.man.cs.rainbow.rapa.data.Valuesubst - The substitution to apply first.val - The value to unify with this value.NotUnifiable - If the two values cannot be unified.public int hashCode()
hashCode in class Applicationpublic boolean equals(Value o)
equals in class Applicationpublic boolean hasVariable()
hasVariable in class Applicationpublic Value subst(Substitution s)
Valuesubst in class Applicationpublic Value subst(GeneralSubstitution s)
Valuesubst in class Application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||