All Packages Class Hierarchy This Package Previous Next Index
Class kl1.lang.GJava
java.lang.Object
|
+----kl1.lang.KL1Object
|
+----kl1.lang.GCObj
|
+----kl1.lang.GJava
- public class GJava
- extends GCObj
This class represents a java object.
- Author:
- Satoshi KURAMOCHI
-
GJava(Object)
- Constructs a java object.
-
GJava(String)
- Constructs a java object.
-
GJava(String, boolean)
- Constructs a java object.
-
GJava(String, Object[])
- Constructs a java object.
-
()
-
-
_new(KL1Machine, KL1Object[])
- Creates generic objects.
-
active_unify(KL1Machine, KL1Object)
- Performs an active unification.
-
convertFromKL1(KL1Object)
- Convert a KL1 term to a Java object.
-
convertToKL1(Object)
- Convert a Java object to a KL1 object.
-
deref()
- Dereferences the object.
-
get()
-
-
print()
- Prints the information of the object.
-
unify(KL1Machine, KL1Object)
- Unifies this object and
that
.
GJava
public GJava(String class_name,
Object argv[])
- Constructs a java object.
- Parameters:
- class_name - the class name of the object.
- argv - arguments.
GJava
public GJava(String class_name)
- Constructs a java object.
- Parameters:
- class_name - the class name of the object.
GJava
public GJava(String class_name,
boolean isClass)
- Constructs a java object.
- Parameters:
- class_name - the class name of the object.
GJava
public GJava(Object obj)
- Constructs a java object.
static void ()
_new
public static KL1Object _new(KL1Machine mach,
KL1Object argv[])
- Creates generic objects.
deref
public KL1Object deref()
- Dereferences the object.
- Overrides:
- deref in class GCObj
active_unify
public KL1Object active_unify(KL1Machine mach,
KL1Object that)
- Performs an active unification.
- Overrides:
- active_unify in class GCObj
convertFromKL1
public static Object convertFromKL1(KL1Object x)
- Convert a KL1 term to a Java object.
- Parameters:
- x - A KL1 object to be converted.
This must be deref()'ed and instantiated.
- Returns:
- the object to be converted.
convertToKL1
public static KL1Object convertToKL1(Object x)
- Convert a Java object to a KL1 object.
- Parameters:
- x - A Java object to be converted.
- Returns:
- the KL1 object to be converted.
unify
public void unify(KL1Machine mach,
KL1Object that)
- Unifies this object and
that
.
- Overrides:
- unify in class KL1Object
get
public Object get()
print
public String print()
- Prints the information of the object.
- Overrides:
- print in class KL1Object
All Packages Class Hierarchy This Package Previous Next Index