public class PLString extends PLTerm
Constructor and Description |
---|
PLString(java.lang.String s)
Given a Java string, creates a Java
PLString
object. |
Modifier and Type | Method and Description |
---|---|
PLTerm |
copy()
Makes a full copy of this
PLString
object. |
boolean |
equals(PLTerm t)
Compares this
PLString object with the PLTerm given as
argument. |
java.lang.String |
getValue()
Gets the value of a Prolog string object.
|
boolean |
isRunnable()
Execution test on Prolog objects.
|
java.lang.Object |
javaRepr()
Java representation of a
PLString . |
java.lang.Object |
javaRepr(CiaoJava.PLInterpreter i)
Java representation of a
PLString . |
int |
length()
Returns the number of characters of this
PLString . |
PLList |
toPLList()
Converts this Prolog string into a Prolog list
of ASCII codes of this string.
|
java.lang.String |
toString()
String representation of a Java PLString object.
|
isAtom, isFloat, isInteger, isList, isNil, isString, isStructure, isVariable, unify
public PLString(java.lang.String s)
PLString
object.s
- String that will contain the Prolog string.public java.lang.String toString()
public java.lang.String getValue()
public java.lang.Object javaRepr(CiaoJava.PLInterpreter i)
PLString
. Creates a copy
of the value of this PLString
and returns it.public java.lang.Object javaRepr()
PLString
. Creates a copy
of the value of this PLString
and returns it.public boolean isRunnable()
isRunnable
in class PLTerm
false
.public boolean equals(PLTerm t)
PLString
object with the PLTerm
given as
argument. Implementation of the method inherited from PLTerm.public PLTerm copy()
PLString
object.public int length()
PLString
.public PLList toPLList() throws PLException
PLException