|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 LispStringpublic void internal_princ(PrintStream os)
internal_princ in interface LispValueinternal_princ in class StandardLispValuepublic void internal_prin1(PrintStream os)
internal_prin1 in interface LispValueinternal_prin1 in class StandardLispValuepublic void internal_print(PrintStream os)
internal_print in interface LispValueinternal_print in class StandardLispValuepublic Object toJava()
toJava in interface LispValuetoJava in class StandardLispValuepublic String toString()
StandardLispValuetoString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string.
toString in interface LispValuetoString in class StandardLispValuepublic String toStringSimple()
toStringSimple in interface LispValuetoStringSimple in class StandardLispValuepublic boolean basic_constantp()
LispValue
basic_constantp in interface LispValuebasic_constantp in class StandardLispValuepublic LispValue basic_elt(int n)
basic_elt in interface LispStringpublic int basic_length()
LispValue
basic_length in interface LispValuebasic_length in class StandardLispValuepublic boolean basic_stringp()
LispValue
basic_stringp in interface LispValuebasic_stringp in class StandardLispValuepublic LispValue concatenate(LispValue values)
concatenate in interface LispValueconcatenate in class StandardLispValuepublic LispValue constantp()
LispValue
constantp in interface LispValueconstantp in class StandardLispValuepublic LispValue elt(int index)
elt in interface LispValueelt in class StandardLispValuepublic LispValue elt(LispValue index)
LispValue
elt in interface LispValueelt in class StandardLispValuepublic LispValue eql(LispValue other)
LispValue
eql in interface LispValueeql in class StandardLispValuepublic LispValue equal(LispValue other)
LispValue
equal in interface LispValueequal in class StandardLispValuepublic boolean equals(LispValue other)
public LispValue first()
LispValue
first in interface LispValuefirst in class StandardLispValuepublic LispValue second()
LispValue
second in interface LispValuesecond in class StandardLispValuepublic LispValue third()
LispValue
third in interface LispValuethird in class StandardLispValuepublic LispValue fourth()
LispValue
fourth in interface LispValuefourth in class StandardLispValuepublic LispValue fifth()
LispValue
fifth in interface LispValuefifth in class StandardLispValuepublic LispValue sixth()
LispValue
sixth in interface LispValuesixth in class StandardLispValuepublic LispValue seventh()
LispValue
seventh in interface LispValueseventh in class StandardLispValuepublic LispValue eighth()
LispValue
eighth in interface LispValueeighth in class StandardLispValuepublic LispValue ninth()
LispValue
ninth in interface LispValueninth in class StandardLispValuepublic LispValue tenth()
LispValue
tenth in interface LispValuetenth in class StandardLispValuepublic LispValue last()
last in interface LispValuelast in class StandardLispValuepublic LispValue length()
LispValue
length in interface LispValuelength in class StandardLispValuepublic LispValue stringp()
LispValue
stringp in interface LispValuestringp in class StandardLispValuepublic LispValue nstringUpcase()
nstringUpcase in interface LispValuenstringUpcase in class StandardLispValuepublic LispValue nstringCapitalize()
nstringCapitalize in interface LispValuenstringCapitalize in class StandardLispValuepublic LispValue nstringDowncase()
nstringDowncase in interface LispValuenstringDowncase in class StandardLispValuepublic LispValue position(LispValue element)
position in interface LispValueposition in class StandardLispValuepublic LispValue readFromString()
readFromString in interface LispValuereadFromString in class StandardLispValuepublic LispValue string()
string in interface LispValuestring in class StandardLispValuepublic LispValue stringCapitalize()
stringCapitalize in interface LispValuestringCapitalize in class StandardLispValuepublic LispValue stringDowncase()
stringDowncase in interface LispValuestringDowncase in class StandardLispValuepublic LispValue stringEndsWith(LispValue arg)
stringEndsWith in interface LispValuestringEndsWith in class StandardLispValuepublic LispValue stringEq(LispValue arg)
stringEq in interface LispValuestringEq in class StandardLispValuepublic LispValue stringEqual(LispValue arg)
stringEqual in interface LispValuestringEqual in class StandardLispValuepublic LispValue stringGreaterP(LispValue arg)
stringGreaterP in interface LispValuestringGreaterP in class StandardLispValuepublic LispValue stringGreaterThan(LispValue arg)
stringGreaterThan in interface LispValuestringGreaterThan in class StandardLispValuepublic LispValue stringGreaterThanOrEqual(LispValue arg)
stringGreaterThanOrEqual in interface LispValuestringGreaterThanOrEqual in class StandardLispValuepublic LispValue stringLeftTrim()
stringLeftTrim in interface LispValuestringLeftTrim in class StandardLispValuepublic LispValue stringLeftTrim(LispValue deleteBag)
stringLeftTrim in interface LispValuestringLeftTrim in class StandardLispValuepublic LispValue stringLessP(LispValue arg)
stringLessP in interface LispValuestringLessP in class StandardLispValuepublic LispValue stringLessThan(LispValue arg)
stringLessThan in interface LispValuestringLessThan in class StandardLispValuepublic LispValue stringLessThanOrEqual(LispValue arg)
stringLessThanOrEqual in interface LispValuestringLessThanOrEqual in class StandardLispValuepublic LispValue stringNeq(LispValue arg)
stringNeq in interface LispValuestringNeq in class StandardLispValuepublic LispValue stringNotGreaterP(LispValue arg)
stringNotGreaterP in interface LispValuestringNotGreaterP in class StandardLispValuepublic LispValue stringNotLessP(LispValue arg)
stringNotLessP in interface LispValuestringNotLessP in class StandardLispValuepublic LispValue stringRightTrim()
stringRightTrim in interface LispValuestringRightTrim in class StandardLispValuepublic LispValue stringRightTrim(LispValue deleteBag)
stringRightTrim in interface LispValuestringRightTrim in class StandardLispValuepublic LispValue stringStartsWith(LispValue arg)
stringStartsWith in interface LispValuestringStartsWith in class StandardLispValuepublic LispValue stringTrim()
stringTrim in interface LispValuestringTrim in class StandardLispValuepublic LispValue stringTrim(LispValue deleteBag)
stringTrim in interface LispValuestringTrim in class StandardLispValuepublic LispValue stringUpcase()
stringUpcase in interface LispValuestringUpcase in class StandardLispValuepublic LispValue substring(LispValue start)
substring in interface LispValuesubstring in class StandardLispValue
public LispValue substring(LispValue start,
LispValue end)
substring in interface LispValuesubstring in class StandardLispValuepublic LispValue type_of()
type_of in interface LispValuetype_of in class StandardLispValuepublic LispValue typep(LispValue type)
typep in interface LispValuetypep in class StandardLispAtom
|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||