|
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 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()
StandardLispValue
toString()
returns a printed representation
of the form (as printed by (prin1)
) in
a Java string.
toString
in interface LispValue
toString
in class StandardLispValue
public void internal_princ(PrintStream os)
internal_princ
in interface LispValue
internal_princ
in class StandardLispValue
public void internal_prin1(PrintStream os)
internal_prin1
in interface LispValue
internal_prin1
in class StandardLispValue
public void internal_print(PrintStream os)
internal_print
in interface LispValue
internal_print
in class StandardLispValue
public Object toJava()
toJava
in interface LispValue
toJava
in class StandardLispValue
public boolean basic_functionp()
LispValue
basic_functionp
in interface LispValue
basic_functionp
in class StandardLispValue
public LispValue getCode()
getCode
in interface LispFunction
public LispValue getSymbol()
getSymbol
in interface LispFunction
public boolean isBuiltin()
isBuiltin
in interface LispFunction
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |