All Packages Class Hierarchy This Package Previous Next Index
Class kl1.lang.Functor
java.lang.Object
|
+----kl1.lang.KL1Object
|
+----kl1.lang.Functor
- public class Functor
- extends KL1Object
This class represents a functor structure.
- Author:
- Satoshi KURAMOCHI
-
args
- arguments
-
functor
- a principal functor
-
Functor(String, KL1Object[])
- Constructs a functor.
-
deref()
- Dereferences the object.
-
gunify(KL1Object)
- Checks whether this object and
that
are unifiable.
-
normalize()
-
-
print()
- Prints the information of the object.
-
shallow_unify(KL1Machine, KL1Object)
- Unifies this object and
that
without recursive unification.
-
toString()
-
-
unify(KL1Machine, KL1Object)
- Unifies this object and
that
.
functor
public String functor
- a principal functor
args
public KL1Object args[]
- arguments
Functor
public Functor(String functor,
KL1Object args[])
- Constructs a functor.
- Parameters:
- functor - a pricipal functor.
- args - arguments
deref
public KL1Object deref()
- Dereferences the object.
- Overrides:
- deref in class KL1Object
gunify
public KL1Object gunify(KL1Object that)
- Checks whether this object and
that
are unifiable.
- Overrides:
- gunify in class KL1Object
unify
public void unify(KL1Machine mach,
KL1Object that)
- Unifies this object and
that
.
- Overrides:
- unify in class KL1Object
shallow_unify
public void shallow_unify(KL1Machine mach,
KL1Object that)
- Unifies this object and
that
without recursive unification.
- Overrides:
- shallow_unify in class KL1Object
toString
public String toString()
- Overrides:
- toString in class KL1Object
print
public String print()
- Prints the information of the object.
- Overrides:
- print in class KL1Object
normalize
public String normalize()
All Packages Class Hierarchy This Package Previous Next Index