Jatha Software

org.jatha.dynatype
Class StandardLispKeyword

java.lang.Object
  extended by org.jatha.dynatype.StandardLispValue
      extended by org.jatha.dynatype.StandardLispAtom
          extended by org.jatha.dynatype.StandardLispSymbol
              extended by org.jatha.dynatype.StandardLispConstant
                  extended by org.jatha.dynatype.StandardLispKeyword
All Implemented Interfaces:
Comparable, LispAtom, LispConstant, LispKeyword, LispSymbol, LispValue

public class StandardLispKeyword
extends StandardLispConstant
implements LispKeyword

A keyword is a constant (symbol) which evaluates to itself.


Field Summary
 
Fields inherited from class org.jatha.dynatype.StandardLispSymbol
f_documentation, f_function, f_isExternalInPackage, f_isSpecial, f_mixedCase, f_name, f_package, f_plist, f_specialCount, f_value
 
Fields inherited from class org.jatha.dynatype.StandardLispValue
f_lisp
 
Constructor Summary
StandardLispKeyword()
           
StandardLispKeyword(Jatha lisp, LispString symbolNameString)
           
StandardLispKeyword(Jatha lisp, String symbolName)
           
 
Method Summary
 boolean basic_constantp()
          Returns Java true if the object is a constant.
 boolean basic_keywordp()
          Returns Java true if the object is a keyword.
 LispValue keywordp()
          Returns T if the object is a keyword.
 LispValue setf_symbol_value(LispValue newValue)
          Sets the value of a symbol.
 Object toJava()
          Returns a String containing the printed equivalent of this keyword.
 String toString()
          Returns this symbol as a string, including the package.
 String toStringSimple()
          Strips or-bars from a LispSymbol name.
 
Methods inherited from class org.jatha.dynatype.StandardLispSymbol
adjustSpecialCount, apply, apropos_print, basic_symbolp, boundp, documentation, equals, externalP, fboundp, funcall, get_specialCount, internal_getName, internal_prin1, internal_princ, internal_print, pop, push, set_special, setExternal, setf_documentation, setf_symbol_function, setf_symbol_plist, setPackage, setq, specialP, string, symbol_function, symbol_name, symbol_package, symbol_plist, symbol_value, symbolp, type_of, typep
 
Methods inherited from class org.jatha.dynatype.StandardLispAtom
atom, basic_atom
 
Methods inherited from class org.jatha.dynatype.StandardLispValue
abs, acos, add, append, asin, assoc, atan, atan2, basic_bignump, basic_consp, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_length, basic_listp, basic_macrop, basic_null, basic_numberp, basic_stringp, bignump, butlast, car, cdr, ceiling, characterp, clrhash, compareTo, concatenate, consp, constantp, contains, copy_list, copy, cos, cot, csc, degreesToRadians, divide, eighth, elt, elt, eq, eql, equal, equalNumeric, factorial, fifth, first, floatp, floor, fourth, functionp, 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_prin1_as_cdr, internal_princ_as_cdr, internal_print_as_cdr, iterator, last, length, lessThan, lessThanOrEqual, lisp_null, list, listp, max, member, min, multiply, nconc, negate, neql, ninth, nreverse, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, position, prin1, princ, print, radiansToDegrees, rassoc, readFromString, reciprocal, remhash, remove, rest, reverse, rplaca, rplacd, sec, second, setf_gethash, setLisp, seventh, showStackTrace, sin, sixth, sqrt, stringCapitalize, stringDowncase, stringEndsWith, stringEq, stringEqual, stringGreaterP, stringGreaterThan, stringGreaterThanOrEqual, stringLeftTrim, stringLeftTrim, stringLessP, stringLessThan, stringLessThanOrEqual, stringNeq, stringNotGreaterP, stringNotLessP, stringp, stringRightTrim, stringRightTrim, stringStartsWith, stringTrim, stringTrim, stringUpcase, subst, substring, substring, subtract, tan, tenth, third, toCollection, toJava, toString, toStringAsCdr_internal, toStringAsCdr, toStringShort, toStringShort, 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.LispSymbol
externalP, setExternal
 
Methods inherited from interface org.jatha.dynatype.LispValue
abs, acos, add, adjustSpecialCount, append, apply, apropos_print, asin, assoc, atan, atan2, atom, basic_atom, basic_bignump, basic_consp, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_length, basic_listp, basic_macrop, basic_null, basic_numberp, basic_stringp, basic_symbolp, bignump, boundp, butlast, car, cdr, ceiling, characterp, clrhash, compareTo, concatenate, consp, constantp, contains, copy_list, copy, cos, cot, csc, degreesToRadians, divide, documentation, eighth, elt, elt, eq, eql, equal, equalNumeric, factorial, fboundp, fifth, first, floatp, floor, fourth, 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, internal_prin1_as_cdr, internal_prin1, internal_princ_as_cdr, internal_princ, internal_print_as_cdr, internal_print, iterator, last, length, lessThan, lessThanOrEqual, lisp_null, list, listp, max, member, min, multiply, nconc, negate, neql, ninth, nreverse, nstringCapitalize, nstringDowncase, nstringUpcase, numberp, pop, position, prin1, princ, print, push, radiansToDegrees, rassoc, readFromString, reciprocal, remhash, remove, rest, reverse, rplaca, rplacd, sec, second, set_special, setf_documentation, setf_gethash, setf_symbol_function, setf_symbol_plist, setLisp, setPackage, setq, seventh, sin, sixth, 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, subst, substring, substring, subtract, symbol_function, symbol_name, symbol_package, symbol_plist, symbol_value, symbolp, tan, tenth, third, toCollection, toJava, toString, toStringAsCdr_internal, toStringAsCdr, toStringShort, toStringShort, type_of, typep, uses, zerop
 

Constructor Detail

StandardLispKeyword

public StandardLispKeyword()

StandardLispKeyword

public StandardLispKeyword(Jatha lisp,
                           String symbolName)

StandardLispKeyword

public StandardLispKeyword(Jatha lisp,
                           LispString symbolNameString)
Method Detail

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 StandardLispConstant

basic_keywordp

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

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

toJava

public Object toJava()
Returns a String containing the printed equivalent of this keyword.

Specified by:
toJava in interface LispValue
Overrides:
toJava in class StandardLispSymbol

toString

public String toString()
Description copied from class: StandardLispSymbol
Returns this symbol as a string, including the package.

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

toStringSimple

public String toStringSimple()
Description copied from class: StandardLispSymbol
Strips or-bars from a LispSymbol name. Leaves a colon on the front of keyword symbols.

Specified by:
toStringSimple in interface LispValue
Overrides:
toStringSimple in class StandardLispSymbol

keywordp

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

Specified by:
keywordp in interface LispValue
Overrides:
keywordp 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 StandardLispConstant

Jatha Software