|
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
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 LispValue
public void setLisp(Jatha lisp)
setLisp
in interface LispValue
public String internal_getName()
internal_getName
in interface LispValue
public void internal_princ(PrintStream os)
internal_princ
in interface LispValue
public void internal_princ_as_cdr(PrintStream os)
internal_princ_as_cdr
in interface LispValue
public void internal_prin1(PrintStream os)
internal_prin1
in interface LispValue
public void internal_prin1_as_cdr(PrintStream os)
internal_prin1_as_cdr
in interface LispValue
public void internal_print(PrintStream os)
internal_print
in interface LispValue
public void internal_print_as_cdr(PrintStream os)
internal_print_as_cdr
in interface LispValue
public void apropos_print(PrintWriter out)
LispValue
apropos_print
in interface LispValue
public boolean basic_atom()
LispValue
basic_atom
in interface LispValue
public boolean basic_bignump()
LispValue
basic_bignump
in interface LispValue
public boolean basic_consp()
LispValue
basic_consp
in interface LispValue
public boolean basic_constantp()
LispValue
basic_constantp
in interface LispValue
public boolean basic_floatp()
LispValue
basic_floatp
in interface LispValue
public boolean basic_foreignp()
LispValue
basic_foreignp
in interface LispValue
public boolean basic_integerp()
LispValue
basic_integerp
in interface LispValue
public boolean basic_functionp()
LispValue
basic_functionp
in interface LispValue
public boolean basic_keywordp()
LispValue
basic_keywordp
in interface LispValue
public int basic_length()
LispValue
basic_length
in interface LispValue
public boolean basic_listp()
LispValue
basic_listp
in interface LispValue
public boolean basic_macrop()
LispValue
basic_macrop
in interface LispValue
public boolean basic_null()
LispValue
basic_null
in interface LispValue
public boolean basic_numberp()
LispValue
basic_numberp
in interface LispValue
public boolean basic_stringp()
LispValue
basic_stringp
in interface LispValue
public boolean basic_symbolp()
LispValue
basic_symbolp
in interface LispValue
public boolean uses(LispValue pkg)
LispValue
uses
in interface LispValue
public boolean contains(LispValue object)
contains
in interface LispValue
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in interface LispValue
public Iterator iterator()
iterator
in interface LispValue
public Object toJava()
toJava
in interface LispValue
public Object toJava(String typeHint)
toJava
in interface LispValue
public Collection toCollection()
toCollection
in interface LispValue
public String toString()
toString()
returns a printed representation
of the form (as printed by (prin1)
) in
a Java string.
toString
in interface LispValue
toString
in class Object
public String toString(String columnSeparator)
toString
in interface LispValue
columnSeparator
- optional column separator string, defaults to a single space.
public String toStringShort()
toStringShort
in interface LispValue
public String toStringShort(int numberOfElements)
toStringShort
in interface LispValue
numberOfElements
- the maximum number of elements to print.public String toStringSimple()
toStringSimple
in interface LispValue
public String toStringAsCdr()
toStringAsCdr
in interface LispValue
public String toStringAsCdr_internal(long index)
toStringAsCdr_internal
in interface LispValue
public void set_special(boolean value)
set_special
in interface LispValue
public boolean specialP()
specialP
in interface LispValue
public void adjustSpecialCount(int amount)
adjustSpecialCount
in interface LispValue
public int get_specialCount()
get_specialCount
in interface LispValue
public void setPackage(LispPackage newPackage)
setPackage
in interface LispValue
public LispValue abs()
abs
in interface LispValue
public LispValue acos()
acos
in interface LispValue
public LispValue asin()
asin
in interface LispValue
public LispValue atan()
atan
in interface LispValue
public LispValue atan2(LispValue x)
atan2
in interface LispValue
public LispValue append(LispValue otherList)
LispValue
append
in interface LispValue
public LispValue apply(LispValue args)
LispValue
apply
in interface LispValue
public LispValue assoc(LispValue index)
LispValue
assoc
in interface LispValue
public LispValue atom()
LispValue
atom
in interface LispValue
public LispValue bignump()
LispValue
bignump
in interface LispValue
public LispValue boundp()
LispValue
boundp
in interface LispValue
public LispValue butlast()
LispValue
butlast
in interface LispValue
public LispValue car()
LispValue
car
in interface LispValue
public LispValue cdr()
LispValue
cdr
in interface LispValue
public LispValue ceiling()
LispValue
ceiling
in interface LispValue
public LispValue characterp()
LispValue
characterp
in interface LispValue
public LispValue clrhash()
LispValue
clrhash
in interface LispValue
public LispValue concatenate(LispValue values)
concatenate
in interface LispValue
public LispValue consp()
LispValue
consp
in interface LispValue
public LispValue constantp()
LispValue
constantp
in interface LispValue
public LispValue copy_list()
LispValue
copy_list
in interface LispValue
public LispValue copy()
copy
in interface LispValue
public LispValue cos()
cos
in interface LispValue
public LispValue cot()
cot
in interface LispValue
public LispValue csc()
csc
in interface LispValue
public LispValue degreesToRadians()
degreesToRadians
in interface LispValue
public LispValue eighth()
LispValue
eighth
in interface LispValue
public LispValue elt(int index)
elt
in interface LispValue
public LispValue elt(LispValue index)
LispValue
elt
in interface LispValue
public LispValue eq(LispValue val)
LispValue
eq
in interface LispValue
public LispValue eql(LispValue val)
LispValue
eql
in interface LispValue
public LispValue equal(LispValue val)
LispValue
equal
in interface LispValue
public LispValue factorial()
factorial
in interface LispValue
public LispValue fboundp()
LispValue
fboundp
in interface LispValue
public LispValue floatp()
LispValue
floatp
in interface LispValue
public LispValue fifth()
LispValue
fifth
in interface LispValue
public LispValue first()
LispValue
first
in interface LispValue
public LispValue floor()
LispValue
floor
in interface LispValue
public LispValue fourth()
LispValue
fourth
in interface LispValue
public LispValue funcall(LispValue args)
LispValue
funcall
in interface LispValue
public LispValue functionp()
functionp
in interface LispValue
public 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 LispValue
public LispValue hashtablep()
LispValue
hashtablep
in interface LispValue
public LispValue hash_table_count()
LispValue
hash_table_count
in interface LispValue
public LispValue hash_table_size()
LispValue
hash_table_size
in interface LispValue
public LispValue hash_table_rehash_size()
LispValue
hash_table_rehash_size
in interface LispValue
public LispValue hash_table_rehash_threshold()
LispValue
hash_table_rehash_threshold
in interface LispValue
public LispValue hash_table_test()
LispValue
hash_table_test
in interface LispValue
public LispValue integerp()
LispValue
integerp
in interface LispValue
public LispValue keywordp()
LispValue
keywordp
in interface LispValue
public LispValue last()
LispValue
last
in interface LispValue
public LispValue length()
LispValue
length
in interface LispValue
public LispValue lisp_null()
LispValue
lisp_null
in interface LispValue
public LispValue list()
LispValue
list
in interface LispValue
public LispValue listp()
LispValue
listp
in interface LispValue
public LispValue max(LispValue args)
LispValue
max
in interface LispValue
public LispValue min(LispValue args)
LispValue
min
in interface LispValue
public LispValue member(LispValue elt)
LispValue
member
in interface LispValue
public LispValue nconc(LispValue arg)
LispValue
nconc
in interface LispValue
public LispValue negate()
LispValue
negate
in interface LispValue
public LispValue neql(LispValue val)
neql
in interface LispValue
val
- public LispValue ninth()
LispValue
ninth
in interface LispValue
public LispValue nreverse()
LispValue
nreverse
in interface LispValue
public LispValue numberp()
LispValue
numberp
in interface LispValue
public 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 LispValue
LispValueNotASymbolException
public LispValue position(LispValue element)
position
in interface LispValue
public LispValue prin1()
LispValue
prin1
in interface LispValue
public LispValue princ()
LispValue
princ
in interface LispValue
public LispValue print()
LispValue
print
in interface LispValue
public 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 LispValue
LispValueNotASymbolException
public LispValue radiansToDegrees()
radiansToDegrees
in interface LispValue
public LispValue rassoc(LispValue index)
LispValue
rassoc
in interface LispValue
public LispValue readFromString()
readFromString
in interface LispValue
public LispValue reciprocal()
reciprocal
in interface LispValue
public LispValue remhash(LispValue key)
LispValue
remhash
in interface LispValue
public LispValue remove(LispValue elt)
LispValue
remove
in interface LispValue
public LispValue rest()
rest
in interface LispValue
public LispValue reverse()
LispValue
reverse
in interface LispValue
public LispValue rplaca(LispValue newCar)
LispValue
rplaca
in interface LispValue
public LispValue rplacd(LispValue newCdr)
LispValue
rplacd
in interface LispValue
public LispValue sec()
sec
in interface LispValue
public LispValue second()
LispValue
second
in interface LispValue
public LispValue setf_symbol_function(LispValue newFunction)
LispValue
setf_symbol_function
in interface LispValue
public LispValue setf_symbol_plist(LispValue newPlist)
LispValue
setf_symbol_plist
in interface LispValue
public LispValue setf_symbol_value(LispValue newValue)
LispValue
setf_symbol_value
in interface LispValue
public LispValue setq(LispValue newValue)
LispValue
setq
in interface LispValue
public LispValue seventh()
LispValue
seventh
in interface LispValue
public LispValue sixth()
LispValue
sixth
in interface LispValue
public LispValue sin()
sin
in interface LispValue
public LispValue sqrt()
sqrt
in interface LispValue
public LispValue stringp()
LispValue
stringp
in interface LispValue
public LispValue nstringCapitalize()
nstringCapitalize
in interface LispValue
public LispValue nstringDowncase()
nstringDowncase
in interface LispValue
public LispValue nstringUpcase()
nstringUpcase
in interface LispValue
public LispValue string()
string
in interface LispValue
public LispValue stringCapitalize()
stringCapitalize
in interface LispValue
public LispValue stringDowncase()
stringDowncase
in interface LispValue
public LispValue stringEndsWith(LispValue arg)
stringEndsWith
in interface LispValue
public LispValue stringEq(LispValue arg)
stringEq
in interface LispValue
public LispValue stringEqual(LispValue arg)
stringEqual
in interface LispValue
public LispValue stringGreaterP(LispValue arg)
stringGreaterP
in interface LispValue
public LispValue stringGreaterThan(LispValue arg)
stringGreaterThan
in interface LispValue
public LispValue stringGreaterThanOrEqual(LispValue arg)
stringGreaterThanOrEqual
in interface LispValue
public LispValue stringLeftTrim()
stringLeftTrim
in interface LispValue
public LispValue stringLeftTrim(LispValue deleteBag)
stringLeftTrim
in interface LispValue
public LispValue stringLessP(LispValue arg)
stringLessP
in interface LispValue
public LispValue stringLessThan(LispValue arg)
stringLessThan
in interface LispValue
public LispValue stringLessThanOrEqual(LispValue arg)
stringLessThanOrEqual
in interface LispValue
public LispValue stringNeq(LispValue arg)
stringNeq
in interface LispValue
public LispValue stringNotGreaterP(LispValue arg)
stringNotGreaterP
in interface LispValue
public LispValue stringNotLessP(LispValue arg)
stringNotLessP
in interface LispValue
public LispValue stringRightTrim()
stringRightTrim
in interface LispValue
public LispValue stringRightTrim(LispValue deleteBag)
stringRightTrim
in interface LispValue
public LispValue stringStartsWith(LispValue arg)
stringStartsWith
in interface LispValue
public LispValue stringTrim()
stringTrim
in interface LispValue
public LispValue stringTrim(LispValue deleteBag)
stringTrim
in interface LispValue
public LispValue stringUpcase()
stringUpcase
in interface LispValue
public LispValue subst(LispValue newValue, LispValue oldValue)
LispValue
subst
in interface LispValue
public LispValue substring(LispValue start)
LispValue
substring
in interface LispValue
public LispValue substring(LispValue start, LispValue end)
LispValue
substring
in interface LispValue
public LispValue symbolp()
LispValue
symbolp
in interface LispValue
public LispValue symbol_function() throws LispException
LispValue
symbol_function
in interface LispValue
LispException
public LispValue symbol_name()
LispValue
symbol_name
in interface LispValue
public LispValue symbol_package()
LispValue
symbol_package
in interface LispValue
public LispValue symbol_plist()
LispValue
symbol_plist
in interface LispValue
public LispValue symbol_value() throws LispException
LispValue
symbol_value
in interface LispValue
LispException
public LispValue tan()
tan
in interface LispValue
public LispValue tenth()
LispValue
tenth
in interface LispValue
public LispValue third()
LispValue
third
in interface LispValue
public LispValue type_of()
type_of
in interface LispValue
public LispValue typep(LispValue type)
typep
in interface LispValue
public LispValue zerop()
zerop
in interface LispValue
public LispValue add(LispValue args)
LispValue
+
function in LISP.
add
in interface LispValue
public LispValue divide(LispValue args)
LispValue
/
function in LISP.
divide
in interface LispValue
public LispValue multiply(LispValue args)
LispValue
*
function in LISP.
multiply
in interface LispValue
public LispValue subtract(LispValue args)
LispValue
-
function in LISP.
subtract
in interface LispValue
public LispValue greaterThan(LispValue arg)
LispValue
greaterThan
in interface LispValue
public LispValue greaterThanOrEqual(LispValue arg)
LispValue
greaterThanOrEqual
in interface LispValue
public LispValue lessThan(LispValue arg)
LispValue
lessThan
in interface LispValue
public LispValue lessThanOrEqual(LispValue arg)
LispValue
lessThanOrEqual
in interface LispValue
public LispValue equalNumeric(LispValue arg)
LispValue
equalNumeric
in interface LispValue
public LispValue documentation(LispValue type)
LispValue
documentation
in interface LispValue
type
- a symbol
public LispValue setf_documentation(LispValue type, LispValue value)
LispValue
setf_documentation
in interface LispValue
type
- 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 |