|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jatha.dynatype.StandardLispValue org.jatha.dynatype.StandardLispAtom org.jatha.dynatype.StandardLispString
public class StandardLispString
Field Summary | |
---|---|
private String |
str
|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
---|
f_lisp |
Constructor Summary | |
---|---|
StandardLispString()
|
|
StandardLispString(Jatha lisp,
String strName)
|
Method Summary | |
---|---|
boolean |
basic_constantp()
Returns Java true if the object is a constant. |
LispValue |
basic_elt(int n)
|
int |
basic_length()
Returns the Java length of a list or string. |
boolean |
basic_stringp()
Returns Java true if the object is a string. |
LispValue |
concatenate(LispValue values)
Concatenate a string to another string. |
LispValue |
constantp()
Returns T if the object is a constant. |
LispValue |
eighth()
Returns the 8th element of a list. |
LispValue |
elt(int index)
|
LispValue |
elt(LispValue index)
Returns the nth element of a list. |
LispValue |
eql(LispValue other)
Returns T if the argument is EQ to the object or if the arguments and object are numbers with equal values. |
LispValue |
equal(LispValue other)
Returns T if the argument is EQL or if two strings are STRING= or if two trees have EQUAL subtrees. |
boolean |
equals(LispValue other)
|
LispValue |
fifth()
Returns the fifth element of a list, or NIL if the list is shorter than 5 elements. |
LispValue |
first()
Returns the first element of a list. |
LispValue |
fourth()
Returns the 4th element of a list, or NIL if the list is shorter than 4 elements. |
String |
getValue()
Returns a Java string containing this value. |
void |
internal_prin1(PrintStream os)
|
void |
internal_princ(PrintStream os)
|
void |
internal_print(PrintStream os)
|
LispValue |
last()
Returns the last character in the string. |
LispValue |
length()
Returns the length of a list or string. |
LispValue |
ninth()
Returns the ninth element of a list, or NIL if the list is shorter than nine elements. |
LispValue |
nstringCapitalize()
For Common LISP compatibility, but identical to stringCapitalize. |
LispValue |
nstringDowncase()
For Common LISP compatibility, but identical to stringDowncase. |
LispValue |
nstringUpcase()
For Common LISP compatibility, but identical to stringUpcase. |
LispValue |
position(LispValue element)
Returns the index of an element in a sequence. |
LispValue |
readFromString()
Reads a value from the given string. |
LispValue |
second()
Returns the second element of a list or NIL if the list is shorter than two elements. |
LispValue |
seventh()
Returns the seventh element of a list or NIL if the list is shorter than seven elements. |
LispValue |
sixth()
Returns the sixth element of a list or NIL if the list is shorter than six elements. |
LispValue |
string()
Converts a String, Symbol or Character to a string. |
LispValue |
stringCapitalize()
Capitalizes the first character of a string and converts the remaining characters to lower case. |
LispValue |
stringDowncase()
Converts all of the characters to lower case. |
LispValue |
stringEndsWith(LispValue arg)
Not in Common LISP, but useful. |
LispValue |
stringEq(LispValue arg)
Returns T if the argument is an identical string to the object. |
LispValue |
stringEqual(LispValue arg)
Returns T if the argument is an identical string to the object. |
LispValue |
stringGreaterP(LispValue arg)
This is the LISP string-greaterp function. |
LispValue |
stringGreaterThan(LispValue arg)
This is the LISP string> function. |
LispValue |
stringGreaterThanOrEqual(LispValue arg)
This is the LISP string>= function. |
LispValue |
stringLeftTrim()
Trims the left end of the string by deleting whitespace on both ends. |
LispValue |
stringLeftTrim(LispValue deleteBag)
Trims the left end of the string by deleting characters in the input string on both ends. |
LispValue |
stringLessP(LispValue arg)
This is the LISP string-lessp function. |
LispValue |
stringLessThan(LispValue arg)
This is the LISP string< function. |
LispValue |
stringLessThanOrEqual(LispValue arg)
This is the LISP string<= function. |
LispValue |
stringNeq(LispValue arg)
Returns T if the argument is not STRING= the given string. |
LispValue |
stringNotGreaterP(LispValue arg)
This is the LISP string-not-greaterp function. |
LispValue |
stringNotLessP(LispValue arg)
This is the LISP string-not-lessp function. |
LispValue |
stringp()
Returns T if the object is a string. |
LispValue |
stringRightTrim()
Trims the right end of the string by deleting whitespace on both ends. |
LispValue |
stringRightTrim(LispValue deleteBag)
Trims the right end of the string by deleting characters in the input string on both ends. |
LispValue |
stringStartsWith(LispValue arg)
Not in Common LISP, but useful. |
LispValue |
stringTrim()
Trims the string by deleting whitespace on both ends. |
LispValue |
stringTrim(LispValue deleteBag)
Trims the string by deleting characters in the input string on both ends. |
LispValue |
stringUpcase()
Converts all the characters to upper case. |
LispValue |
substring(LispValue start)
Returns the substring starting at position START to the end. |
LispValue |
substring(LispValue start,
LispValue end)
Returns the substring starting at position START to the end. |
LispValue |
tenth()
Returns the tenth element of a list or NIL if the list is less than ten elements long. |
LispValue |
third()
Returns the third element of a list or NIL if the list is less than three elements long. |
Object |
toJava()
Returns a Java String object with the value of this string. |
String |
toString()
toString() returns a printed representation
of the form (as printed by (prin1) ) in
a Java string. |
String |
toStringSimple()
Strips double-quotes from a LispString value. |
LispValue |
type_of()
|
LispValue |
typep(LispValue type)
|
Methods inherited from class org.jatha.dynatype.StandardLispAtom |
---|
atom, basic_atom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String str
Constructor Detail |
---|
public StandardLispString()
public StandardLispString(Jatha lisp, String strName)
Method Detail |
---|
public String getValue()
LispString
getValue
in interface LispString
public void internal_princ(PrintStream os)
internal_princ
in interface LispValue
internal_princ
in class StandardLispValue
public void internal_prin1(PrintStream os)
internal_prin1
in interface LispValue
internal_prin1
in class StandardLispValue
public void internal_print(PrintStream os)
internal_print
in interface LispValue
internal_print
in class StandardLispValue
public Object toJava()
toJava
in interface LispValue
toJava
in class StandardLispValue
public String toString()
StandardLispValue
toString()
returns a printed representation
of the form (as printed by (prin1)
) in
a Java string.
toString
in interface LispValue
toString
in class StandardLispValue
public String toStringSimple()
toStringSimple
in interface LispValue
toStringSimple
in class StandardLispValue
public boolean basic_constantp()
LispValue
basic_constantp
in interface LispValue
basic_constantp
in class StandardLispValue
public LispValue basic_elt(int n)
basic_elt
in interface LispString
public int basic_length()
LispValue
basic_length
in interface LispValue
basic_length
in class StandardLispValue
public boolean basic_stringp()
LispValue
basic_stringp
in interface LispValue
basic_stringp
in class StandardLispValue
public LispValue concatenate(LispValue values)
concatenate
in interface LispValue
concatenate
in class StandardLispValue
public LispValue constantp()
LispValue
constantp
in interface LispValue
constantp
in class StandardLispValue
public LispValue elt(int index)
elt
in interface LispValue
elt
in class StandardLispValue
public LispValue elt(LispValue index)
LispValue
elt
in interface LispValue
elt
in class StandardLispValue
public LispValue eql(LispValue other)
LispValue
eql
in interface LispValue
eql
in class StandardLispValue
public LispValue equal(LispValue other)
LispValue
equal
in interface LispValue
equal
in class StandardLispValue
public boolean equals(LispValue other)
public LispValue first()
LispValue
first
in interface LispValue
first
in class StandardLispValue
public LispValue second()
LispValue
second
in interface LispValue
second
in class StandardLispValue
public LispValue third()
LispValue
third
in interface LispValue
third
in class StandardLispValue
public LispValue fourth()
LispValue
fourth
in interface LispValue
fourth
in class StandardLispValue
public LispValue fifth()
LispValue
fifth
in interface LispValue
fifth
in class StandardLispValue
public LispValue sixth()
LispValue
sixth
in interface LispValue
sixth
in class StandardLispValue
public LispValue seventh()
LispValue
seventh
in interface LispValue
seventh
in class StandardLispValue
public LispValue eighth()
LispValue
eighth
in interface LispValue
eighth
in class StandardLispValue
public LispValue ninth()
LispValue
ninth
in interface LispValue
ninth
in class StandardLispValue
public LispValue tenth()
LispValue
tenth
in interface LispValue
tenth
in class StandardLispValue
public LispValue last()
last
in interface LispValue
last
in class StandardLispValue
public LispValue length()
LispValue
length
in interface LispValue
length
in class StandardLispValue
public LispValue stringp()
LispValue
stringp
in interface LispValue
stringp
in class StandardLispValue
public LispValue nstringUpcase()
nstringUpcase
in interface LispValue
nstringUpcase
in class StandardLispValue
public LispValue nstringCapitalize()
nstringCapitalize
in interface LispValue
nstringCapitalize
in class StandardLispValue
public LispValue nstringDowncase()
nstringDowncase
in interface LispValue
nstringDowncase
in class StandardLispValue
public LispValue position(LispValue element)
position
in interface LispValue
position
in class StandardLispValue
public LispValue readFromString()
readFromString
in interface LispValue
readFromString
in class StandardLispValue
public LispValue string()
string
in interface LispValue
string
in class StandardLispValue
public LispValue stringCapitalize()
stringCapitalize
in interface LispValue
stringCapitalize
in class StandardLispValue
public LispValue stringDowncase()
stringDowncase
in interface LispValue
stringDowncase
in class StandardLispValue
public LispValue stringEndsWith(LispValue arg)
stringEndsWith
in interface LispValue
stringEndsWith
in class StandardLispValue
public LispValue stringEq(LispValue arg)
stringEq
in interface LispValue
stringEq
in class StandardLispValue
public LispValue stringEqual(LispValue arg)
stringEqual
in interface LispValue
stringEqual
in class StandardLispValue
public LispValue stringGreaterP(LispValue arg)
stringGreaterP
in interface LispValue
stringGreaterP
in class StandardLispValue
public LispValue stringGreaterThan(LispValue arg)
stringGreaterThan
in interface LispValue
stringGreaterThan
in class StandardLispValue
public LispValue stringGreaterThanOrEqual(LispValue arg)
stringGreaterThanOrEqual
in interface LispValue
stringGreaterThanOrEqual
in class StandardLispValue
public LispValue stringLeftTrim()
stringLeftTrim
in interface LispValue
stringLeftTrim
in class StandardLispValue
public LispValue stringLeftTrim(LispValue deleteBag)
stringLeftTrim
in interface LispValue
stringLeftTrim
in class StandardLispValue
public LispValue stringLessP(LispValue arg)
stringLessP
in interface LispValue
stringLessP
in class StandardLispValue
public LispValue stringLessThan(LispValue arg)
stringLessThan
in interface LispValue
stringLessThan
in class StandardLispValue
public LispValue stringLessThanOrEqual(LispValue arg)
stringLessThanOrEqual
in interface LispValue
stringLessThanOrEqual
in class StandardLispValue
public LispValue stringNeq(LispValue arg)
stringNeq
in interface LispValue
stringNeq
in class StandardLispValue
public LispValue stringNotGreaterP(LispValue arg)
stringNotGreaterP
in interface LispValue
stringNotGreaterP
in class StandardLispValue
public LispValue stringNotLessP(LispValue arg)
stringNotLessP
in interface LispValue
stringNotLessP
in class StandardLispValue
public LispValue stringRightTrim()
stringRightTrim
in interface LispValue
stringRightTrim
in class StandardLispValue
public LispValue stringRightTrim(LispValue deleteBag)
stringRightTrim
in interface LispValue
stringRightTrim
in class StandardLispValue
public LispValue stringStartsWith(LispValue arg)
stringStartsWith
in interface LispValue
stringStartsWith
in class StandardLispValue
public LispValue stringTrim()
stringTrim
in interface LispValue
stringTrim
in class StandardLispValue
public LispValue stringTrim(LispValue deleteBag)
stringTrim
in interface LispValue
stringTrim
in class StandardLispValue
public LispValue stringUpcase()
stringUpcase
in interface LispValue
stringUpcase
in class StandardLispValue
public LispValue substring(LispValue start)
substring
in interface LispValue
substring
in class StandardLispValue
public LispValue substring(LispValue start, LispValue end)
substring
in interface LispValue
substring
in class StandardLispValue
public LispValue type_of()
type_of
in interface LispValue
type_of
in class StandardLispValue
public LispValue typep(LispValue type)
typep
in interface LispValue
typep
in class StandardLispAtom
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |