All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class kl1.lang.GString

java.lang.Object
   |
   +----kl1.lang.KL1Object
           |
           +----kl1.lang.GDObj
                   |
                   +----kl1.lang.GString

public final class GString
extends GDObj
This class represents a string object.

Author:
Satoshi KURAMOCHI

Constructor Index

 o GString()
Constructs a string object.
 o GString(char[])
Constructs a string object.
 o GString(char[], boolean)
Constructs a string object.
 o GString(String)
Constructs a string object.
 o GString(String, boolean)
Constructs a string object.

Method Index

 o ()
 o _new(KL1Machine, KL1Object[])
Creates generic objects.
 o byte_string_new(KL1Machine, KL1Object[])
 o compare(GDObj)
 o element_of_string(IntAtom)
 o generic(KL1Machine, String, KL1Object[])
Calls generic method.
 o ggeneric(String, KL1Object[])
Calls guard generic method.
 o gunify(KL1Object)
Checks whether this object and that are unifiable.
 o hash()
 o print()
Prints the information of the object.
 o size_of_string()
 o string_size()
 o toString()
 o unify(KL1Machine, KL1Object)
Unifies this object and that.

Constructors

 o GString
 public GString()
Constructs a string object.

 o GString
 public GString(String body)
Constructs a string object.

Parameters:
body - a string.
 o GString
 public GString(String body,
                boolean iscnst)
Constructs a string object.

Parameters:
body - a string.
iscnst - whether or not this is a constant.
 o GString
 public GString(char body[])
Constructs a string object.

Parameters:
body - a string.
 o GString
 public GString(char body[],
                boolean iscnst)
Constructs a string object.

Parameters:
body - a string.
iscnst - whether or not this is a constant.

Methods

 o
 static void ()
 o gunify
 public KL1Object gunify(KL1Object that_)
Checks whether this object and that are unifiable.

Overrides:
gunify in class GDObj
 o unify
 public void unify(KL1Machine mach,
                   KL1Object that_)
Unifies this object and that.

Overrides:
unify in class GDObj
 o generic
 public void generic(KL1Machine mach,
                     String method,
                     KL1Object argv[])
Calls generic method.

Overrides:
generic in class GDObj
 o ggeneric
 public KL1Object ggeneric(String method,
                           KL1Object argv[])
Calls guard generic method.

Overrides:
ggeneric in class GDObj
 o print
 public String print()
Prints the information of the object.

Overrides:
print in class KL1Object
 o compare
 public IntAtom compare(GDObj that_)
Overrides:
compare in class GDObj
 o hash
 public IntAtom hash()
Overrides:
hash in class GDObj
 o byte_string_new
 public static KL1Object byte_string_new(KL1Machine mach,
                                         KL1Object argv[])
 o _new
 public static KL1Object _new(KL1Machine mach,
                              KL1Object argv[])
Creates generic objects.

 o toString
 public String toString()
Overrides:
toString in class KL1Object
 o string_size
 public int string_size()
 o size_of_string
 public IntAtom size_of_string()
 o element_of_string
 public KL1Object element_of_string(IntAtom k)

All Packages  Class Hierarchy  This Package  Previous  Next  Index