|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jatha.dynatype.StandardLispValue
org.jatha.dynatype.StandardLispFunction
public class StandardLispFunction
Implements a Common LISP 'function' type which represents built-in or user-defined functions.
LispValue| Field Summary | |
|---|---|
private LispValue |
f_code
|
private boolean |
f_isBuiltin
|
private LispValue |
f_symbol
|
| Fields inherited from class org.jatha.dynatype.StandardLispValue |
|---|
f_lisp |
| Constructor Summary | |
|---|---|
StandardLispFunction()
|
|
StandardLispFunction(Jatha lisp)
Creates a function with no content - not recommended. |
|
StandardLispFunction(Jatha lisp,
LispValue symbol,
LispValue code)
Send in the instance of Jatha and the code for this function. |
|
| Method Summary | |
|---|---|
boolean |
basic_functionp()
Returns Java true if the object is a function. |
LispValue |
getCode()
Gets the code of the function. |
LispValue |
getSymbol()
Returns the symbol that owns this function. |
void |
internal_prin1(PrintStream os)
|
void |
internal_princ(PrintStream os)
|
void |
internal_print(PrintStream os)
|
boolean |
isBuiltin()
Returns true if this is a builtin function. |
Object |
toJava()
Returns a Java HashMap containing the contents of this HashTable. |
String |
toString()
toString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean f_isBuiltin
private LispValue f_symbol
private LispValue f_code
| Constructor Detail |
|---|
public StandardLispFunction()
public StandardLispFunction(Jatha lisp)
public StandardLispFunction(Jatha lisp,
LispValue symbol,
LispValue code)
| Method Detail |
|---|
public String toString()
StandardLispValuetoString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string.
toString in interface LispValuetoString in class StandardLispValuepublic void internal_princ(PrintStream os)
internal_princ in interface LispValueinternal_princ in class StandardLispValuepublic void internal_prin1(PrintStream os)
internal_prin1 in interface LispValueinternal_prin1 in class StandardLispValuepublic void internal_print(PrintStream os)
internal_print in interface LispValueinternal_print in class StandardLispValuepublic Object toJava()
toJava in interface LispValuetoJava in class StandardLispValuepublic boolean basic_functionp()
LispValue
basic_functionp in interface LispValuebasic_functionp in class StandardLispValuepublic LispValue getCode()
getCode in interface LispFunctionpublic LispValue getSymbol()
getSymbol in interface LispFunctionpublic boolean isBuiltin()
isBuiltin in interface LispFunction
|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||