|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jatha.dynatype.StandardLispValue
public abstract class StandardLispValue
LispValue is the root of all of the dynamically-typed LISP-like structures. It contains definitions of all methods that operate on Lisp values. This class is not instantiated directly. Instead, use a LispValueFactory instance to create the instances.
LispValueFactory| Field Summary | |
|---|---|
protected Jatha |
f_lisp
|
| Constructor Summary | |
|---|---|
StandardLispValue()
|
|
StandardLispValue(Jatha lisp)
|
|
| Method Summary | |
|---|---|
LispValue |
abs()
Returns the absolute value of any number, including complex. |
LispValue |
acos()
Arccos function, argument in radians. |
LispValue |
add(LispValue args)
Returns the sum of the object and the object(s) in the argument list. |
void |
adjustSpecialCount(int amount)
|
LispValue |
append(LispValue otherList)
Append two lists together. |
LispValue |
apply(LispValue args)
Apply a function to an argument list. |
void |
apropos_print(PrintWriter out)
Prints information for the APROPOS function |
LispValue |
asin()
Arcsin function, argument in radians. |
LispValue |
assoc(LispValue index)
Look up a value in an association list. |
LispValue |
atan()
Arctan function, argument in radians. |
LispValue |
atan2(LispValue x)
Arctan function, argument in radians. |
LispValue |
atom()
Returns T if the object is an atom. |
boolean |
basic_atom()
Returns Java true if the object is an atom. |
boolean |
basic_bignump()
Returns Java true if the object is a Bignum. |
boolean |
basic_consp()
Returns Java true if the object is a CONS cell. |
boolean |
basic_constantp()
Returns Java true if the object is a constant. |
boolean |
basic_floatp()
Returns Java true if the object is a floating-point number. |
boolean |
basic_foreignp()
Returns Java true if the object is a reference to an object in a foreign computer language. |
boolean |
basic_functionp()
Returns Java true if the object is a function. |
boolean |
basic_integerp()
Returns Java true if the object is an integer. |
boolean |
basic_keywordp()
Returns Java true if the object is a keyword. |
int |
basic_length()
Returns the Java length of a list or string. |
boolean |
basic_listp()
Returns Java true if the object is a CONS cell or NIL. |
boolean |
basic_macrop()
Returns Java true if the object is a macro. |
boolean |
basic_null()
Returns Java true if the object is NIL. |
boolean |
basic_numberp()
Returns Java true if the object is a number. |
boolean |
basic_stringp()
Returns Java true if the object is a string. |
boolean |
basic_symbolp()
Returns Java true if the object is a symbol. |
LispValue |
bignump()
Returns T if the object is a Bignum. |
LispValue |
boundp()
Returns T if the symbol has been assigned a value. |
LispValue |
butlast()
Returns all but the last of the elements of a list. |
LispValue |
car()
Returns the first element of a list. |
LispValue |
cdr()
Returns all but the first element of a list. |
LispValue |
ceiling()
Returns the smallest integer greater than or equal to the input number. |
LispValue |
characterp()
Returns T if the object is a Character. |
LispValue |
clrhash()
Clears a hash table. |
int |
compareTo(Object o)
|
LispValue |
concatenate(LispValue values)
Concatenate a string or symbol to other strings or symbols. |
LispValue |
consp()
Returns T if the object is a CONS cell. |
LispValue |
constantp()
Returns T if the object is a constant. |
boolean |
contains(LispValue object)
Wrapper for member(). |
LispValue |
copy_list()
Returns a copy of the top level of a list. |
LispValue |
copy()
Returns a full copy of any list, tree, array or table, copying all the leaf elements. |
LispValue |
cos()
Cosine function, argument in radians. |
LispValue |
cot()
Cotangent function, 1/tan(x), argument in radians. |
LispValue |
csc()
Cosecant function, 1/sin(x), argument in radians. |
LispValue |
degreesToRadians()
Converts a numeric value from degrees to radians. |
LispValue |
divide(LispValue args)
Returns the quotient of the object and the object(s) in the argument list. |
LispValue |
documentation(LispValue type)
Returns the documentation string for this symbol, of the type specified. |
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 |
eq(LispValue val)
Returns T if the argument is exactly identical to the object. |
LispValue |
eql(LispValue val)
Returns T if the argument is EQ to the object or if the arguments and object are numbers with equal values. |
LispValue |
equal(LispValue val)
Returns T if the argument is EQL or if two strings are STRING= or if two trees have EQUAL subtrees. |
LispValue |
equalNumeric(LispValue arg)
Returns T if the object is EQUAL to its argument. |
LispValue |
factorial()
Compute the factorial of a non-negative integer. |
LispValue |
fboundp()
Returns T if the symbol has an assigned function. |
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 |
floatp()
Returns T if the object is a floating-point number. |
LispValue |
floor()
Returns the largest integer less than or equal to the input number. |
LispValue |
fourth()
Returns the 4th element of a list, or NIL if the list is shorter than 4 elements. |
LispValue |
funcall(LispValue args)
Calls a functio non a list of arguments. |
LispValue |
functionp()
|
int |
get_specialCount()
|
LispValue |
gethash(LispValue key)
Retrieves values from a hash table. |
LispValue |
gethash(LispValue key,
LispValue defawlt)
Retrieves values from a hash table, returning a default value if the key is not in the table. |
Jatha |
getLisp()
|
LispValue |
greaterThan(LispValue arg)
Returns T if the object prepended to the argument list is in strictly decreasing order. |
LispValue |
greaterThanOrEqual(LispValue arg)
Returns T if the object prepended to the argument list is in non-increasing order. |
LispValue |
hash_table_count()
Returns the number of items in the hash table. |
LispValue |
hash_table_rehash_size()
Returns a floating-point number that indicates how large the hash table will be after rehashing, as a percentage of the current size. |
LispValue |
hash_table_rehash_threshold()
Returns a floating-point number that indicates how full the table gets before it will expand and rehash its contents. |
LispValue |
hash_table_size()
Returns the total size of the hash table, including empty slots. |
LispValue |
hash_table_test()
Returns the function used when comparing keys in the hash table. |
LispValue |
hashtablep()
Returns T if the object is a floating-point number. |
LispValue |
integerp()
Returns T if the object is an Integer. |
String |
internal_getName()
|
void |
internal_prin1_as_cdr(PrintStream os)
|
void |
internal_prin1(PrintStream os)
|
void |
internal_princ_as_cdr(PrintStream os)
|
void |
internal_princ(PrintStream os)
|
void |
internal_print_as_cdr(PrintStream os)
|
void |
internal_print(PrintStream os)
|
Iterator |
iterator()
|
LispValue |
keywordp()
Returns T if the object is a keyword. |
LispValue |
last()
Returns the last cons cell in a list. |
LispValue |
length()
Returns the length of a list or string. |
LispValue |
lessThan(LispValue arg)
Returns T if the object prepended to the argument list is in strictly increasing order. |
LispValue |
lessThanOrEqual(LispValue arg)
Returns T if the object prepended to the argument list is in strictly non-decreasing order. |
LispValue |
lisp_null()
Returns T if the object is NIL. |
LispValue |
list()
Creates a list from the object. |
LispValue |
listp()
Returns T if the object is a list. |
LispValue |
max(LispValue args)
Returns the maximum element of a list of numbers. |
LispValue |
member(LispValue elt)
Returns the tail of the list starting at the given element. |
LispValue |
min(LispValue args)
Returns the minimum element of a list of numbers. |
LispValue |
multiply(LispValue args)
Returns the product of the object and the object(s) in the argument list. |
LispValue |
nconc(LispValue arg)
Destructively appends a list to the end of the given list. |
LispValue |
negate()
Return the negative of a number. |
LispValue |
neql(LispValue val)
Returns NIL if eql returns T, and vice versa. |
LispValue |
ninth()
Returns the ninth element of a list, or NIL if the list is shorter than nine elements. |
LispValue |
nreverse()
Destructively reverses the given list. |
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 |
numberp()
Returns T if the object is any kind of number. |
LispValue |
pop()
Pops a list and returns the first element. |
LispValue |
position(LispValue element)
Returns the index of an element in a sequence. |
LispValue |
prin1()
Prints the value to standard output with *print-escape* bound to T. |
LispValue |
princ()
Prints the output so that it is readable to a person. |
LispValue |
print()
Prints using prin1, except the output is preceded by a newline and terminated by a space. |
LispValue |
push(LispValue value)
Pushes an element onto a list and returns the list. |
LispValue |
radiansToDegrees()
Converts a numeric value from radians to degrees. |
LispValue |
rassoc(LispValue index)
Like ASSOC except it matches the CDR of the cell instead of the CAR. |
LispValue |
readFromString()
Reads a value from the given string. |
LispValue |
reciprocal()
Computes 1/x of the given number. |
LispValue |
remhash(LispValue key)
Removes an element from a hash table. |
LispValue |
remove(LispValue elt)
Returns a copy of a list without all copies of the given element. |
LispValue |
rest()
Synonym for CDR. |
LispValue |
reverse()
Returns the reversed value of a list. |
LispValue |
rplaca(LispValue newCar)
Replaces the CAR of a CONS cell. |
LispValue |
rplacd(LispValue newCdr)
Replaces the CDR of a CONS cell. |
LispValue |
sec()
Secant function, 1/cos(x), argument in radians. |
LispValue |
second()
Returns the second element of a list or NIL if the list is shorter than two elements. |
void |
set_special(boolean value)
|
LispValue |
setf_documentation(LispValue type,
LispValue value)
Sets the documentation string for this symbol of the type specified. |
LispValue |
setf_gethash(LispValue key,
LispValue value)
Sets a value in a hash table. |
LispValue |
setf_symbol_function(LispValue newFunction)
Sets the function of a symbol. |
LispValue |
setf_symbol_plist(LispValue newPlist)
Sets the property list of a symbol. |
LispValue |
setf_symbol_value(LispValue newValue)
Sets the value of a symbol. |
void |
setLisp(Jatha lisp)
|
void |
setPackage(LispPackage newPackage)
|
LispValue |
setq(LispValue newValue)
Assigns a value to a symbol. |
LispValue |
seventh()
Returns the seventh element of a list or NIL if the list is shorter than seven elements. |
void |
showStackTrace()
|
LispValue |
sin()
Sine trigonometric function. |
LispValue |
sixth()
Returns the sixth element of a list or NIL if the list is shorter than six elements. |
boolean |
specialP()
|
LispValue |
sqrt()
Square root. |
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 |
subst(LispValue newValue,
LispValue oldValue)
Replaces all oldValues in a tree with newValue. |
LispValue |
substring(LispValue start)
Returns the substring of a string starting with the nth element. |
LispValue |
substring(LispValue start,
LispValue end)
Returns the substring of a string starting with the start element and ending just before the end element. |
LispValue |
subtract(LispValue args)
Returns the difference of the object and the object(s) in the argument list. |
LispValue |
symbol_function()
Returns the function assigned to a symbol. |
LispValue |
symbol_name()
Returns a string containing the name of a symbol. |
LispValue |
symbol_package()
Returns the package of a symbol. |
LispValue |
symbol_plist()
Returns the property list of a symbol. |
LispValue |
symbol_value()
Returns the value of a symbol. |
LispValue |
symbolp()
Returns T if the object is a symbol. |
LispValue |
tan()
Tangent trigonometric function. |
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. |
Collection |
toCollection()
Returns the Lisp value as a Collection. |
Object |
toJava()
Returns a Java equivalent of the object. |
Object |
toJava(String typeHint)
Returns a Java equivalent of the object. |
String |
toString()
toString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string. |
String |
toString(String columnSeparator)
Same as toString unless you are getting a String representation of an array. |
String |
toStringAsCdr_internal(long index)
Counts cdrs so as not to have runaway lists. |
String |
toStringAsCdr()
|
String |
toStringShort()
Prints a short version of the item. |
String |
toStringShort(int numberOfElements)
Prints out a short version of the value. |
String |
toStringSimple()
Strips double-quotes from a LispString value. |
LispValue |
type_of()
|
LispValue |
typep(LispValue type)
|
boolean |
uses(LispValue pkg)
Returns true if this package uses the given package |
LispValue |
zerop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Jatha f_lisp
| Constructor Detail |
|---|
public StandardLispValue()
public StandardLispValue(Jatha lisp)
| Method Detail |
|---|
public Jatha getLisp()
getLisp in interface LispValuepublic void setLisp(Jatha lisp)
setLisp in interface LispValuepublic String internal_getName()
internal_getName in interface LispValuepublic void internal_princ(PrintStream os)
internal_princ in interface LispValuepublic void internal_princ_as_cdr(PrintStream os)
internal_princ_as_cdr in interface LispValuepublic void internal_prin1(PrintStream os)
internal_prin1 in interface LispValuepublic void internal_prin1_as_cdr(PrintStream os)
internal_prin1_as_cdr in interface LispValuepublic void internal_print(PrintStream os)
internal_print in interface LispValuepublic void internal_print_as_cdr(PrintStream os)
internal_print_as_cdr in interface LispValuepublic void apropos_print(PrintWriter out)
LispValue
apropos_print in interface LispValuepublic boolean basic_atom()
LispValue
basic_atom in interface LispValuepublic boolean basic_bignump()
LispValue
basic_bignump in interface LispValuepublic boolean basic_consp()
LispValue
basic_consp in interface LispValuepublic boolean basic_constantp()
LispValue
basic_constantp in interface LispValuepublic boolean basic_floatp()
LispValue
basic_floatp in interface LispValuepublic boolean basic_foreignp()
LispValue
basic_foreignp in interface LispValuepublic boolean basic_integerp()
LispValue
basic_integerp in interface LispValuepublic boolean basic_functionp()
LispValue
basic_functionp in interface LispValuepublic boolean basic_keywordp()
LispValue
basic_keywordp in interface LispValuepublic int basic_length()
LispValue
basic_length in interface LispValuepublic boolean basic_listp()
LispValue
basic_listp in interface LispValuepublic boolean basic_macrop()
LispValue
basic_macrop in interface LispValuepublic boolean basic_null()
LispValue
basic_null in interface LispValuepublic boolean basic_numberp()
LispValue
basic_numberp in interface LispValuepublic boolean basic_stringp()
LispValue
basic_stringp in interface LispValuepublic boolean basic_symbolp()
LispValue
basic_symbolp in interface LispValuepublic boolean uses(LispValue pkg)
LispValue
uses in interface LispValuepublic boolean contains(LispValue object)
contains in interface LispValuepublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in interface LispValuepublic Iterator iterator()
iterator in interface LispValuepublic Object toJava()
toJava in interface LispValuepublic Object toJava(String typeHint)
toJava in interface LispValuepublic Collection toCollection()
toCollection in interface LispValuepublic String toString()
toString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string.
toString in interface LispValuetoString in class Objectpublic String toString(String columnSeparator)
toString in interface LispValuecolumnSeparator - optional column separator string, defaults to a single space.
public String toStringShort()
toStringShort in interface LispValuepublic String toStringShort(int numberOfElements)
toStringShort in interface LispValuenumberOfElements - the maximum number of elements to print.public String toStringSimple()
toStringSimple in interface LispValuepublic String toStringAsCdr()
toStringAsCdr in interface LispValuepublic String toStringAsCdr_internal(long index)
toStringAsCdr_internal in interface LispValuepublic void set_special(boolean value)
set_special in interface LispValuepublic boolean specialP()
specialP in interface LispValuepublic void adjustSpecialCount(int amount)
adjustSpecialCount in interface LispValuepublic int get_specialCount()
get_specialCount in interface LispValuepublic void setPackage(LispPackage newPackage)
setPackage in interface LispValuepublic LispValue abs()
abs in interface LispValuepublic LispValue acos()
acos in interface LispValuepublic LispValue asin()
asin in interface LispValuepublic LispValue atan()
atan in interface LispValuepublic LispValue atan2(LispValue x)
atan2 in interface LispValuepublic LispValue append(LispValue otherList)
LispValue
append in interface LispValuepublic LispValue apply(LispValue args)
LispValue
apply in interface LispValuepublic LispValue assoc(LispValue index)
LispValue
assoc in interface LispValuepublic LispValue atom()
LispValue
atom in interface LispValuepublic LispValue bignump()
LispValue
bignump in interface LispValuepublic LispValue boundp()
LispValue
boundp in interface LispValuepublic LispValue butlast()
LispValue
butlast in interface LispValuepublic LispValue car()
LispValue
car in interface LispValuepublic LispValue cdr()
LispValue
cdr in interface LispValuepublic LispValue ceiling()
LispValue
ceiling in interface LispValuepublic LispValue characterp()
LispValue
characterp in interface LispValuepublic LispValue clrhash()
LispValue
clrhash in interface LispValuepublic LispValue concatenate(LispValue values)
concatenate in interface LispValuepublic LispValue consp()
LispValue
consp in interface LispValuepublic LispValue constantp()
LispValue
constantp in interface LispValuepublic LispValue copy_list()
LispValue
copy_list in interface LispValuepublic LispValue copy()
copy in interface LispValuepublic LispValue cos()
cos in interface LispValuepublic LispValue cot()
cot in interface LispValuepublic LispValue csc()
csc in interface LispValuepublic LispValue degreesToRadians()
degreesToRadians in interface LispValuepublic LispValue eighth()
LispValue
eighth in interface LispValuepublic LispValue elt(int index)
elt in interface LispValuepublic LispValue elt(LispValue index)
LispValue
elt in interface LispValuepublic LispValue eq(LispValue val)
LispValue
eq in interface LispValuepublic LispValue eql(LispValue val)
LispValue
eql in interface LispValuepublic LispValue equal(LispValue val)
LispValue
equal in interface LispValuepublic LispValue factorial()
factorial in interface LispValuepublic LispValue fboundp()
LispValue
fboundp in interface LispValuepublic LispValue floatp()
LispValue
floatp in interface LispValuepublic LispValue fifth()
LispValue
fifth in interface LispValuepublic LispValue first()
LispValue
first in interface LispValuepublic LispValue floor()
LispValue
floor in interface LispValuepublic LispValue fourth()
LispValue
fourth in interface LispValuepublic LispValue funcall(LispValue args)
LispValue
funcall in interface LispValuepublic LispValue functionp()
functionp in interface LispValuepublic LispValue gethash(LispValue key)
LispValue
gethash in interface LispValue
public LispValue gethash(LispValue key,
LispValue defawlt)
LispValue
gethash in interface LispValue
public LispValue setf_gethash(LispValue key,
LispValue value)
LispValue
setf_gethash in interface LispValuepublic LispValue hashtablep()
LispValue
hashtablep in interface LispValuepublic LispValue hash_table_count()
LispValue
hash_table_count in interface LispValuepublic LispValue hash_table_size()
LispValue
hash_table_size in interface LispValuepublic LispValue hash_table_rehash_size()
LispValue
hash_table_rehash_size in interface LispValuepublic LispValue hash_table_rehash_threshold()
LispValue
hash_table_rehash_threshold in interface LispValuepublic LispValue hash_table_test()
LispValue
hash_table_test in interface LispValuepublic LispValue integerp()
LispValue
integerp in interface LispValuepublic LispValue keywordp()
LispValue
keywordp in interface LispValuepublic LispValue last()
LispValue
last in interface LispValuepublic LispValue length()
LispValue
length in interface LispValuepublic LispValue lisp_null()
LispValue
lisp_null in interface LispValuepublic LispValue list()
LispValue
list in interface LispValuepublic LispValue listp()
LispValue
listp in interface LispValuepublic LispValue max(LispValue args)
LispValue
max in interface LispValuepublic LispValue min(LispValue args)
LispValue
min in interface LispValuepublic LispValue member(LispValue elt)
LispValue
member in interface LispValuepublic LispValue nconc(LispValue arg)
LispValue
nconc in interface LispValuepublic LispValue negate()
LispValue
negate in interface LispValuepublic LispValue neql(LispValue val)
neql in interface LispValueval - public LispValue ninth()
LispValue
ninth in interface LispValuepublic LispValue nreverse()
LispValue
nreverse in interface LispValuepublic LispValue numberp()
LispValue
numberp in interface LispValuepublic LispValue pop()
LispValue l1 = lisp.makeList(A, B); l1.pop(); // works correctly, l1 is now (B) l1.pop(); // doesn't work correctly. l1 is now (NIL . NIL)Jatha can't reassign l1 as expected.
However, the following does work:
LispValue l1 = new LispSymbol(lisp, "L1"); l1.setq(lisp.makeList(A, B)); l1.pop(); // works correctly. The value of L1 is now (B). l1.pop(); // works correctly. The value of L1 is now NIL. l1.push(A); // works correctly. The value of L1 is now (A). assert(l1.symbol_value().equal(lisp.makeList(A)) == lisp.T);
pop in interface LispValueLispValueNotASymbolExceptionpublic LispValue position(LispValue element)
position in interface LispValuepublic LispValue prin1()
LispValue
prin1 in interface LispValuepublic LispValue princ()
LispValue
princ in interface LispValuepublic LispValue print()
LispValue
print in interface LispValuepublic LispValue push(LispValue value)
LispValue l1 = LispValue.NIL; l1.push(A); // doesn't work correctly. l1 is still NIL. l1 = l1.push(A); // works correctly.Jatha can't reassign l1 as expected.
However, the following does work:
LispValue l1 = new LispSymbol("L1");
l1.setq(LispValue.NIL);
l1.push(B); // works correctly. The value of L1 is now (B).
l1.push(A); // works correctly. The value of L1 is now (A B).
assert(l1.symbol_value().equal(LispValueFactory.makeList(A, B)) == LispValue.T);
push in interface LispValueLispValueNotASymbolExceptionpublic LispValue radiansToDegrees()
radiansToDegrees in interface LispValuepublic LispValue rassoc(LispValue index)
LispValue
rassoc in interface LispValuepublic LispValue readFromString()
readFromString in interface LispValuepublic LispValue reciprocal()
reciprocal in interface LispValuepublic LispValue remhash(LispValue key)
LispValue
remhash in interface LispValuepublic LispValue remove(LispValue elt)
LispValue
remove in interface LispValuepublic LispValue rest()
rest in interface LispValuepublic LispValue reverse()
LispValue
reverse in interface LispValuepublic LispValue rplaca(LispValue newCar)
LispValue
rplaca in interface LispValuepublic LispValue rplacd(LispValue newCdr)
LispValue
rplacd in interface LispValuepublic LispValue sec()
sec in interface LispValuepublic LispValue second()
LispValue
second in interface LispValuepublic LispValue setf_symbol_function(LispValue newFunction)
LispValue
setf_symbol_function in interface LispValuepublic LispValue setf_symbol_plist(LispValue newPlist)
LispValue
setf_symbol_plist in interface LispValuepublic LispValue setf_symbol_value(LispValue newValue)
LispValue
setf_symbol_value in interface LispValuepublic LispValue setq(LispValue newValue)
LispValue
setq in interface LispValuepublic LispValue seventh()
LispValue
seventh in interface LispValuepublic LispValue sixth()
LispValue
sixth in interface LispValuepublic LispValue sin()
sin in interface LispValuepublic LispValue sqrt()
sqrt in interface LispValuepublic LispValue stringp()
LispValue
stringp in interface LispValuepublic LispValue nstringCapitalize()
nstringCapitalize in interface LispValuepublic LispValue nstringDowncase()
nstringDowncase in interface LispValuepublic LispValue nstringUpcase()
nstringUpcase in interface LispValuepublic LispValue string()
string in interface LispValuepublic LispValue stringCapitalize()
stringCapitalize in interface LispValuepublic LispValue stringDowncase()
stringDowncase in interface LispValuepublic LispValue stringEndsWith(LispValue arg)
stringEndsWith in interface LispValuepublic LispValue stringEq(LispValue arg)
stringEq in interface LispValuepublic LispValue stringEqual(LispValue arg)
stringEqual in interface LispValuepublic LispValue stringGreaterP(LispValue arg)
stringGreaterP in interface LispValuepublic LispValue stringGreaterThan(LispValue arg)
stringGreaterThan in interface LispValuepublic LispValue stringGreaterThanOrEqual(LispValue arg)
stringGreaterThanOrEqual in interface LispValuepublic LispValue stringLeftTrim()
stringLeftTrim in interface LispValuepublic LispValue stringLeftTrim(LispValue deleteBag)
stringLeftTrim in interface LispValuepublic LispValue stringLessP(LispValue arg)
stringLessP in interface LispValuepublic LispValue stringLessThan(LispValue arg)
stringLessThan in interface LispValuepublic LispValue stringLessThanOrEqual(LispValue arg)
stringLessThanOrEqual in interface LispValuepublic LispValue stringNeq(LispValue arg)
stringNeq in interface LispValuepublic LispValue stringNotGreaterP(LispValue arg)
stringNotGreaterP in interface LispValuepublic LispValue stringNotLessP(LispValue arg)
stringNotLessP in interface LispValuepublic LispValue stringRightTrim()
stringRightTrim in interface LispValuepublic LispValue stringRightTrim(LispValue deleteBag)
stringRightTrim in interface LispValuepublic LispValue stringStartsWith(LispValue arg)
stringStartsWith in interface LispValuepublic LispValue stringTrim()
stringTrim in interface LispValuepublic LispValue stringTrim(LispValue deleteBag)
stringTrim in interface LispValuepublic LispValue stringUpcase()
stringUpcase in interface LispValue
public LispValue subst(LispValue newValue,
LispValue oldValue)
LispValue
subst in interface LispValuepublic LispValue substring(LispValue start)
LispValue
substring in interface LispValue
public LispValue substring(LispValue start,
LispValue end)
LispValue
substring in interface LispValuepublic LispValue symbolp()
LispValue
symbolp in interface LispValue
public LispValue symbol_function()
throws LispException
LispValue
symbol_function in interface LispValueLispExceptionpublic LispValue symbol_name()
LispValue
symbol_name in interface LispValuepublic LispValue symbol_package()
LispValue
symbol_package in interface LispValuepublic LispValue symbol_plist()
LispValue
symbol_plist in interface LispValue
public LispValue symbol_value()
throws LispException
LispValue
symbol_value in interface LispValueLispExceptionpublic LispValue tan()
tan in interface LispValuepublic LispValue tenth()
LispValue
tenth in interface LispValuepublic LispValue third()
LispValue
third in interface LispValuepublic LispValue type_of()
type_of in interface LispValuepublic LispValue typep(LispValue type)
typep in interface LispValuepublic LispValue zerop()
zerop in interface LispValuepublic LispValue add(LispValue args)
LispValue+ function in LISP.
add in interface LispValuepublic LispValue divide(LispValue args)
LispValue/ function in LISP.
divide in interface LispValuepublic LispValue multiply(LispValue args)
LispValue* function in LISP.
multiply in interface LispValuepublic LispValue subtract(LispValue args)
LispValue- function in LISP.
subtract in interface LispValuepublic LispValue greaterThan(LispValue arg)
LispValue
greaterThan in interface LispValuepublic LispValue greaterThanOrEqual(LispValue arg)
LispValue
greaterThanOrEqual in interface LispValuepublic LispValue lessThan(LispValue arg)
LispValue
lessThan in interface LispValuepublic LispValue lessThanOrEqual(LispValue arg)
LispValue
lessThanOrEqual in interface LispValuepublic LispValue equalNumeric(LispValue arg)
LispValue
equalNumeric in interface LispValuepublic LispValue documentation(LispValue type)
LispValue
documentation in interface LispValuetype - a symbol
public LispValue setf_documentation(LispValue type,
LispValue value)
LispValue
setf_documentation in interface LispValuetype - a symbolvalue - a lispstring
public void showStackTrace()
|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||