Jatha Software

org.jatha.dynatype
Interface LispPackage

All Superinterfaces:
Comparable, LispValue
All Known Implementing Classes:
StandardLispPackage

public interface LispPackage
extends LispValue

An implementation of ANSI Common LISP packages, including defpackage, export, import, etc.

See Also:
Jatha

Method Summary
 LispValue addSymbol(LispString name, LispValue symbol)
          Returns the symbol after it is added to the package.
 LispValue export(LispValue symbols)
          Declares the symbol or symbols as exported symbols.
 LispValue getExternalSymbol(LispString str)
          Returns the external symbol with the given name
 LispString getName()
          Returns the name of this package as a LispString.
 LispValue getNicknames()
          Returns a list of the nicknames of this package.
 LispValue getSymbol(LispString str)
          Returns the symbol with the given name.
 SymbolTable getSymbolTable()
          Returns the symbol table for this package.
 LispValue getUses()
          Returns a list of package names that this package uses.
 void setNicknames(LispValue nicknames)
           
 void setUses(LispValue uses)
          Sets the uses for this package.
 
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_constantp, basic_floatp, basic_foreignp, basic_functionp, basic_integerp, basic_keywordp, 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, keywordp, 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, setf_symbol_value, 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, toJava, toString, toString, toStringAsCdr_internal, toStringAsCdr, toStringShort, toStringShort, toStringSimple, type_of, typep, uses, zerop
 

Method Detail

getName

LispString getName()
Returns the name of this package as a LispString.


getNicknames

LispValue getNicknames()
Returns a list of the nicknames of this package. Each element of the list is a LispString.


getExternalSymbol

LispValue getExternalSymbol(LispString str)
Returns the external symbol with the given name

Parameters:
str - a LispString corresponding to the symbol.

getSymbolTable

SymbolTable getSymbolTable()
Returns the symbol table for this package.


getSymbol

LispValue getSymbol(LispString str)
Returns the symbol with the given name.

Parameters:
str -

export

LispValue export(LispValue symbols)
Declares the symbol or symbols as exported symbols. The symbol can be a symbol or list of symbols.


addSymbol

LispValue addSymbol(LispString name,
                    LispValue symbol)
Returns the symbol after it is added to the package.

Parameters:
name -
symbol -

getUses

LispValue getUses()
Returns a list of package names that this package uses. Contains either symbols or strings.


setUses

void setUses(LispValue uses)
Sets the uses for this package.

Parameters:
uses - the uses of this package

setNicknames

void setNicknames(LispValue nicknames)

Jatha Software