Jatha Software

org.jatha.dynatype
Class StandardLispNIL

java.lang.Object
  extended by org.jatha.dynatype.StandardLispValue
      extended by org.jatha.dynatype.StandardLispConsOrNil
          extended by org.jatha.dynatype.StandardLispNIL
All Implemented Interfaces:
Comparable, LispConsOrNil, LispNil, LispValue

public class StandardLispNIL
extends StandardLispConsOrNil
implements LispNil


Field Summary
private  LispValue function
           
private  LispString name
           
private  LispValue pack
           
private  LispValue plist
           
private  LispValue value
           
 
Fields inherited from class org.jatha.dynatype.StandardLispValue
f_lisp
 
Constructor Summary
StandardLispNIL()
           
StandardLispNIL(Jatha lisp, LispString symbolNameString)
           
StandardLispNIL(Jatha lisp, String symbolName)
           
 
Method Summary
 LispValue append(LispValue otherList)
          Append two lists together.
 void apropos_print(PrintStream out)
           
 LispValue assoc(LispValue index)
          Look up a value in an association list.
 LispValue atom()
          Returns T if the object is an atom.
 boolean basic_atom()
          Returns Java true if the object is an atom.
 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.
 int basic_length()
          Returns the Java length of a list or string.
 boolean basic_null()
          Returns Java true if the object is NIL.
 boolean basic_symbolp()
          Returns Java true if the object is a symbol.
 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 constantp()
          Returns T if the object is a constant.
 LispValue copy_list()
          Returns a copy of the top level of a list.
 LispValue eighth()
          Returns the 8th element of a list.
 LispValue elt(LispValue index)
          Returns the nth element of a list.
 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.
 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)
           
 LispValue last()
          Returns the last cons cell in a list.
 LispValue length()
          Returns the length of a list or string.
 LispValue lisp_null()
          Returns T if the object is NIL.
 LispValue member(LispValue elt)
          Returns the tail of the list starting at the given element.
 LispValue ninth()
          Returns the ninth element of a list, or NIL if the list is shorter than nine elements.
 LispValue nreverse(LispValue index)
           
 LispValue rassoc(LispValue index)
          Like ASSOC except it matches the CDR of the cell instead of the CAR.
 LispValue remove(LispValue elt)
          Returns a copy of a list without all copies of the given element.
 LispValue rest()
          Synonym for CDR.
 LispValue reverse(LispValue elt)
           
 LispValue rplaca(LispValue newCar)
          Replaces the CAR of a CONS cell.
 LispValue rplacd(LispValue newCdr)
          Replaces the CDR of a CONS cell.
 LispValue second()
          Returns the second element of a list or NIL if the list is shorter than two elements.
 LispValue setf_symbol_function(LispValue newFunction)
          Sets the function of a symbol.
 LispValue setf_symbol_value(LispValue newValue)
          Sets the value of a symbol.
 void setPackage(LispPackage newPackage)
           
 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 subst(LispValue oldValue, LispValue newValue)
          Replaces all oldValues in a tree with newValue.
 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 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.
 String toString()
          toString() returns a printed representation of the form (as printed by (prin1)) in a Java string.
 String toStringAsCdr()
           
 LispValue type_of()
           
 LispValue typep(LispValue type)
           
 
Methods inherited from class org.jatha.dynatype.StandardLispConsOrNil
basic_listp, iterator, listp, nconc, nreverse, pop, position, reverse
 
Methods inherited from class org.jatha.dynatype.StandardLispValue
abs, acos, add, adjustSpecialCount, apply, apropos_print, asin, atan, atan2, basic_bignump, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_keywordp, basic_macrop, basic_numberp, basic_stringp, bignump, ceiling, characterp, clrhash, compareTo, concatenate, consp, contains, copy, cos, cot, csc, degreesToRadians, divide, documentation, elt, eq, eql, equal, equalNumeric, factorial, fboundp, floatp, floor, funcall, functionp, get_specialCount, gethash, gethash, getLisp, greaterThan, greaterThanOrEqual, hash_table_count, hash_table_rehash_size, hash_table_rehash_threshold, hash_table_size, hash_table_test, hashtablep, integerp, internal_getName, keywordp, lessThan, lessThanOrEqual, list, max, min, multiply, negate, neql, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, prin1, princ, print, push, radiansToDegrees, readFromString, reciprocal, remhash, sec, set_special, setf_documentation, setf_gethash, setf_symbol_plist, setLisp, setq, showStackTrace, sin, specialP, sqrt, string, stringCapitalize, stringDowncase, stringEndsWith, stringEq, stringEqual, stringGreaterP, stringGreaterThan, stringGreaterThanOrEqual, stringLeftTrim, stringLeftTrim, stringLessP, stringLessThan, stringLessThanOrEqual, stringNeq, stringNotGreaterP, stringNotLessP, stringp, stringRightTrim, stringRightTrim, stringStartsWith, stringTrim, stringTrim, stringUpcase, substring, substring, subtract, symbol_function, tan, toCollection, toJava, toJava, toString, toStringAsCdr_internal, toStringShort, toStringShort, toStringSimple, uses, zerop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jatha.dynatype.LispValue
abs, acos, add, adjustSpecialCount, apply, apropos_print, asin, atan, atan2, basic_bignump, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_keywordp, basic_listp, basic_macrop, basic_numberp, basic_stringp, bignump, ceiling, characterp, clrhash, compareTo, concatenate, consp, contains, copy, cos, cot, csc, degreesToRadians, divide, documentation, elt, eq, eql, equal, equalNumeric, factorial, fboundp, floatp, floor, funcall, functionp, get_specialCount, gethash, gethash, getLisp, greaterThan, greaterThanOrEqual, hash_table_count, hash_table_rehash_size, hash_table_rehash_threshold, hash_table_size, hash_table_test, hashtablep, integerp, internal_getName, iterator, keywordp, lessThan, lessThanOrEqual, list, listp, max, min, multiply, nconc, negate, neql, nreverse, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, pop, position, prin1, princ, print, push, radiansToDegrees, readFromString, reciprocal, remhash, reverse, sec, set_special, setf_documentation, setf_gethash, setf_symbol_plist, setLisp, setq, sin, specialP, sqrt, string, stringCapitalize, stringDowncase, stringEndsWith, stringEq, stringEqual, stringGreaterP, stringGreaterThan, stringGreaterThanOrEqual, stringLeftTrim, stringLeftTrim, stringLessP, stringLessThan, stringLessThanOrEqual, stringNeq, stringNotGreaterP, stringNotLessP, stringp, stringRightTrim, stringRightTrim, stringStartsWith, stringTrim, stringTrim, stringUpcase, substring, substring, subtract, symbol_function, tan, toCollection, toJava, toJava, toString, toStringAsCdr_internal, toStringShort, toStringShort, toStringSimple, uses, zerop
 

Field Detail

name

private LispString name

value

private LispValue value

plist

private LispValue plist

function

private LispValue function

pack

private LispValue pack
Constructor Detail

StandardLispNIL

public StandardLispNIL()

StandardLispNIL

public StandardLispNIL(Jatha lisp,
                       String symbolName)

StandardLispNIL

public StandardLispNIL(Jatha lisp,
                       LispString symbolNameString)
Method Detail

internal_princ

public void internal_princ(PrintStream os)
Specified by:
internal_princ in interface LispValue
Overrides:
internal_princ in class StandardLispValue

internal_princ_as_cdr

public void internal_princ_as_cdr(PrintStream os)
Specified by:
internal_princ_as_cdr in interface LispValue
Overrides:
internal_princ_as_cdr in class StandardLispValue

internal_prin1

public void internal_prin1(PrintStream os)
Specified by:
internal_prin1 in interface LispValue
Overrides:
internal_prin1 in class StandardLispValue

internal_prin1_as_cdr

public void internal_prin1_as_cdr(PrintStream os)
Specified by:
internal_prin1_as_cdr in interface LispValue
Overrides:
internal_prin1_as_cdr in class StandardLispValue

internal_print

public void internal_print(PrintStream os)
Specified by:
internal_print in interface LispValue
Overrides:
internal_print in class StandardLispValue

internal_print_as_cdr

public void internal_print_as_cdr(PrintStream os)
Specified by:
internal_print_as_cdr in interface LispValue
Overrides:
internal_print_as_cdr in class StandardLispValue

apropos_print

public void apropos_print(PrintStream out)

constantp

public LispValue constantp()
Description copied from interface: LispValue
Returns T if the object is a constant.

Specified by:
constantp in interface LispValue
Overrides:
constantp in class StandardLispValue

toString

public String toString()
Description copied from class: StandardLispValue
toString() returns a printed representation of the form (as printed by (prin1)) in a Java string.

Specified by:
toString in interface LispValue
Overrides:
toString in class StandardLispValue
Returns:
String The value in a string.

toStringAsCdr

public String toStringAsCdr()
Specified by:
toStringAsCdr in interface LispValue
Overrides:
toStringAsCdr in class StandardLispValue

basic_atom

public boolean basic_atom()
Description copied from interface: LispValue
Returns Java true if the object is an atom.

Specified by:
basic_atom in interface LispValue
Overrides:
basic_atom in class StandardLispValue

basic_consp

public boolean basic_consp()
Description copied from interface: LispValue
Returns Java true if the object is a CONS cell.

Specified by:
basic_consp in interface LispValue
Overrides:
basic_consp in class StandardLispConsOrNil

basic_constantp

public boolean basic_constantp()
Description copied from interface: LispValue
Returns Java true if the object is a constant.

Specified by:
basic_constantp in interface LispValue
Overrides:
basic_constantp in class StandardLispValue

basic_length

public int basic_length()
Description copied from interface: LispValue
Returns the Java length of a list or string.

Specified by:
basic_length in interface LispValue
Overrides:
basic_length in class StandardLispValue

basic_symbolp

public boolean basic_symbolp()
Description copied from interface: LispValue
Returns Java true if the object is a symbol.

Specified by:
basic_symbolp in interface LispValue
Overrides:
basic_symbolp in class StandardLispValue

basic_null

public boolean basic_null()
Description copied from interface: LispValue
Returns Java true if the object is NIL.

Specified by:
basic_null in interface LispValue
Overrides:
basic_null in class StandardLispValue

setPackage

public void setPackage(LispPackage newPackage)
Specified by:
setPackage in interface LispValue
Overrides:
setPackage in class StandardLispValue

append

public LispValue append(LispValue otherList)
Description copied from interface: LispValue
Append two lists together. The first list is copied.

Specified by:
append in interface LispValue
Overrides:
append in class StandardLispValue

assoc

public LispValue assoc(LispValue index)
Description copied from interface: LispValue
Look up a value in an association list.

Specified by:
assoc in interface LispValue
Overrides:
assoc in class StandardLispValue

atom

public LispValue atom()
Description copied from interface: LispValue
Returns T if the object is an atom.

Specified by:
atom in interface LispValue
Overrides:
atom in class StandardLispValue

boundp

public LispValue boundp()
Description copied from interface: LispValue
Returns T if the symbol has been assigned a value.

Specified by:
boundp in interface LispValue
Overrides:
boundp in class StandardLispValue

butlast

public LispValue butlast()
Description copied from interface: LispValue
Returns all but the last of the elements of a list. Butlast is the mirror image of CDR.

Specified by:
butlast in interface LispValue
Overrides:
butlast in class StandardLispConsOrNil

car

public LispValue car()
Description copied from interface: LispValue
Returns the first element of a list. CAR of NIL is NIL.

Specified by:
car in interface LispValue
Overrides:
car in class StandardLispValue

cdr

public LispValue cdr()
Description copied from interface: LispValue
Returns all but the first element of a list. CDR of NIL is NIL.

Specified by:
cdr in interface LispValue
Overrides:
cdr in class StandardLispValue

copy_list

public LispValue copy_list()
Description copied from interface: LispValue
Returns a copy of the top level of a list. Does not copy the interior branches.

Specified by:
copy_list in interface LispValue
Overrides:
copy_list in class StandardLispValue

elt

public LispValue elt(LispValue index)
Description copied from interface: LispValue
Returns the nth element of a list. The zeroth element is the first element.

Specified by:
elt in interface LispValue
Overrides:
elt in class StandardLispConsOrNil

first

public LispValue first()
Description copied from interface: LispValue
Returns the first element of a list. Identical to the CAR function.

Specified by:
first in interface LispValue
Overrides:
first in class StandardLispValue

second

public LispValue second()
Description copied from interface: LispValue
Returns the second element of a list or NIL if the list is shorter than two elements.

Specified by:
second in interface LispValue
Overrides:
second in class StandardLispValue

third

public LispValue third()
Description copied from interface: LispValue
Returns the third element of a list or NIL if the list is less than three elements long.

Specified by:
third in interface LispValue
Overrides:
third in class StandardLispValue

fourth

public LispValue fourth()
Description copied from interface: LispValue
Returns the 4th element of a list, or NIL if the list is shorter than 4 elements.

Specified by:
fourth in interface LispValue
Overrides:
fourth in class StandardLispValue

fifth

public LispValue fifth()
Description copied from interface: LispValue
Returns the fifth element of a list, or NIL if the list is shorter than 5 elements.

Specified by:
fifth in interface LispValue
Overrides:
fifth in class StandardLispValue

sixth

public LispValue sixth()
Description copied from interface: LispValue
Returns the sixth element of a list or NIL if the list is shorter than six elements.

Specified by:
sixth in interface LispValue
Overrides:
sixth in class StandardLispValue

seventh

public LispValue seventh()
Description copied from interface: LispValue
Returns the seventh element of a list or NIL if the list is shorter than seven elements.

Specified by:
seventh in interface LispValue
Overrides:
seventh in class StandardLispValue

eighth

public LispValue eighth()
Description copied from interface: LispValue
Returns the 8th element of a list. If the list is shorter than 8 elements, returns NIL.

Specified by:
eighth in interface LispValue
Overrides:
eighth in class StandardLispValue

ninth

public LispValue ninth()
Description copied from interface: LispValue
Returns the ninth element of a list, or NIL if the list is shorter than nine elements.

Specified by:
ninth in interface LispValue
Overrides:
ninth in class StandardLispValue

tenth

public LispValue tenth()
Description copied from interface: LispValue
Returns the tenth element of a list or NIL if the list is less than ten elements long.

Specified by:
tenth in interface LispValue
Overrides:
tenth in class StandardLispValue

last

public LispValue last()
Description copied from interface: LispValue
Returns the last cons cell in a list. LAST of NIL is NIL.

Specified by:
last in interface LispValue
Overrides:
last in class StandardLispValue

length

public LispValue length()
Description copied from interface: LispValue
Returns the length of a list or string.

Specified by:
length in interface LispValue
Overrides:
length in class StandardLispConsOrNil

member

public LispValue member(LispValue elt)
Description copied from interface: LispValue
Returns the tail of the list starting at the given element. Uses EQL as the comparator.

Specified by:
member in interface LispValue
Overrides:
member in class StandardLispValue

nreverse

public LispValue nreverse(LispValue index)

lisp_null

public LispValue lisp_null()
Description copied from interface: LispValue
Returns T if the object is NIL.

Specified by:
lisp_null in interface LispValue
Overrides:
lisp_null in class StandardLispValue

rassoc

public LispValue rassoc(LispValue index)
Description copied from interface: LispValue
Like ASSOC except it matches the CDR of the cell instead of the CAR.

Specified by:
rassoc in interface LispValue
Overrides:
rassoc in class StandardLispValue

remove

public LispValue remove(LispValue elt)
Description copied from interface: LispValue
Returns a copy of a list without all copies of the given element.

Specified by:
remove in interface LispValue
Overrides:
remove in class StandardLispValue

rest

public LispValue rest()
Description copied from class: StandardLispValue
Synonym for CDR.

Specified by:
rest in interface LispValue
Overrides:
rest in class StandardLispValue

reverse

public LispValue reverse(LispValue elt)

rplaca

public LispValue rplaca(LispValue newCar)
Description copied from interface: LispValue
Replaces the CAR of a CONS cell.

Specified by:
rplaca in interface LispValue
Overrides:
rplaca in class StandardLispValue

rplacd

public LispValue rplacd(LispValue newCdr)
Description copied from interface: LispValue
Replaces the CDR of a CONS cell.

Specified by:
rplacd in interface LispValue
Overrides:
rplacd in class StandardLispValue

setf_symbol_function

public LispValue setf_symbol_function(LispValue newFunction)
Description copied from interface: LispValue
Sets the function of a symbol.

Specified by:
setf_symbol_function in interface LispValue
Overrides:
setf_symbol_function in class StandardLispValue

setf_symbol_value

public LispValue setf_symbol_value(LispValue newValue)
Description copied from interface: LispValue
Sets the value of a symbol.

Specified by:
setf_symbol_value in interface LispValue
Overrides:
setf_symbol_value in class StandardLispValue

symbol_name

public LispValue symbol_name()
Description copied from interface: LispValue
Returns a string containing the name of a symbol.

Specified by:
symbol_name in interface LispValue
Overrides:
symbol_name in class StandardLispValue

symbol_package

public LispValue symbol_package()
Description copied from interface: LispValue
Returns the package of a symbol.

Specified by:
symbol_package in interface LispValue
Overrides:
symbol_package in class StandardLispValue

symbol_plist

public LispValue symbol_plist()
Description copied from interface: LispValue
Returns the property list of a symbol.

Specified by:
symbol_plist in interface LispValue
Overrides:
symbol_plist in class StandardLispValue

symbol_value

public LispValue symbol_value()
Description copied from interface: LispValue
Returns the value of a symbol.

Specified by:
symbol_value in interface LispValue
Overrides:
symbol_value in class StandardLispValue

symbolp

public LispValue symbolp()
Description copied from interface: LispValue
Returns T if the object is a symbol.

Specified by:
symbolp in interface LispValue
Overrides:
symbolp in class StandardLispValue

subst

public LispValue subst(LispValue oldValue,
                       LispValue newValue)
Description copied from interface: LispValue
Replaces all oldValues in a tree with newValue. The default test is EQL.

Specified by:
subst in interface LispValue
Overrides:
subst in class StandardLispValue

type_of

public LispValue type_of()
Specified by:
type_of in interface LispValue
Overrides:
type_of in class StandardLispValue

typep

public LispValue typep(LispValue type)
Specified by:
typep in interface LispValue
Overrides:
typep in class StandardLispValue

Jatha Software