|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jatha.dynatype.LispValueFactory
public class LispValueFactory
As of Jatha 1.5.3, do not use this class. Use the non-static routines Jatha.makeXYZ() instead.
The LispValueFactory knows how to create values of different types. Make an instance of this class and use it to create instances of the types.
The only possible error is an OutOfMemoryError, which Java will generate on its own, so we don't do any error checking. Example:LispValueFactory vf = new LispValueFactory(); LispValue x = vf.makeCons(NIL, NIL);
LispValue
Constructor Summary | |
---|---|
LispValueFactory()
|
Method Summary | |
---|---|
static LispConsOrNil |
makeAppendList(Jatha lisp,
Collection elements)
Deprecated. Use the same method on the Jatha class instead |
static LispBignum |
makeBignum(Jatha lisp,
BigInteger value)
Deprecated. Use the same method on the Jatha class instead |
static LispBignum |
makeBignum(Jatha lisp,
double value)
Deprecated. Use the same method on the Jatha class instead |
static LispBignum |
makeBignum(Jatha lisp,
LispInteger value)
Deprecated. Use the same method on the Jatha class instead |
static LispBignum |
makeBignum(Jatha lisp,
long value)
Deprecated. Use the same method on the Jatha class instead |
static LispCons |
makeCons(Jatha lisp,
LispValue theCar,
LispValue theCdr)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeConstant(Jatha lisp,
LispString symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeConstant(Jatha lisp,
String symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispInteger |
makeInteger(Jatha lisp)
Deprecated. Use the same method on the Jatha class instead |
static LispInteger |
makeInteger(Jatha lisp,
int value)
Deprecated. Use the same method on the Jatha class instead |
static LispInteger |
makeInteger(Jatha lisp,
Integer value)
Deprecated. Use the same method on the Jatha class instead |
static LispInteger |
makeInteger(Jatha lisp,
long value)
Deprecated. Use the same method on the Jatha class instead |
static LispInteger |
makeInteger(Jatha lisp,
Long value)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeKeyword(Jatha lisp,
LispString symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeKeyword(Jatha lisp,
String symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispConsOrNil |
makeList(Jatha lisp,
Collection elements)
Deprecated. Use the same method on the Jatha class instead |
static LispCons |
makeList(Jatha lisp,
LispValue first)
Deprecated. Use the same method on the Jatha class instead |
static LispCons |
makeList(Jatha lisp,
LispValue first,
LispValue second)
Deprecated. Use the same method on the Jatha class instead |
static LispCons |
makeList(Jatha lisp,
LispValue first,
LispValue second,
LispValue third)
Deprecated. Use the same method on the Jatha class instead |
static LispCons |
makeList(Jatha lisp,
LispValue first,
LispValue second,
LispValue third,
LispValue fourth)
Deprecated. Use the same method on the Jatha class instead |
static LispConsOrNil |
makeNconcList(Jatha lisp,
Collection elements)
Deprecated. Use the same method on the Jatha class instead |
static StandardLispNIL |
makeNIL(Jatha lisp,
LispString symbolName)
Deprecated. Use the same method on the Jatha class instead |
static StandardLispNIL |
makeNIL(Jatha lisp,
String symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispReal |
makeReal(Jatha lisp)
Deprecated. Use the same method on the Jatha class instead |
static LispReal |
makeReal(Jatha lisp,
double value)
Deprecated. Use the same method on the Jatha class instead |
static LispReal |
makeReal(Jatha lisp,
Double value)
Deprecated. Use the same method on the Jatha class instead |
static LispReal |
makeReal(Jatha lisp,
float value)
Deprecated. Use the same method on the Jatha class instead |
static LispReal |
makeReal(Jatha lisp,
Float value)
Deprecated. Use the same method on the Jatha class instead |
static LispString |
makeString(Jatha lisp,
String str)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeSymbol(Jatha lisp,
LispString symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispSymbol |
makeSymbol(Jatha lisp,
String symbolName)
Deprecated. Use the same method on the Jatha class instead |
static LispValue |
toLisp(Jatha lisp,
Object obj)
Deprecated. Use the same method on the Jatha class instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LispValueFactory()
Method Detail |
---|
public static LispCons makeCons(Jatha lisp, LispValue theCar, LispValue theCdr)
theCar
- theCdr
-
LispCons
public static LispConsOrNil makeList(Jatha lisp, Collection elements)
LispValue
public static LispCons makeList(Jatha lisp, LispValue first)
LispCons
,
LispValue
public static LispCons makeList(Jatha lisp, LispValue first, LispValue second)
public static LispCons makeList(Jatha lisp, LispValue first, LispValue second, LispValue third)
public static LispCons makeList(Jatha lisp, LispValue first, LispValue second, LispValue third, LispValue fourth)
public static LispConsOrNil makeAppendList(Jatha lisp, Collection elements)
public static LispConsOrNil makeNconcList(Jatha lisp, Collection elements)
public static LispInteger makeInteger(Jatha lisp, Long value)
LispInteger
,
LispValue
public static LispInteger makeInteger(Jatha lisp, long value)
public static LispInteger makeInteger(Jatha lisp, Integer value)
public static LispInteger makeInteger(Jatha lisp, int value)
public static LispInteger makeInteger(Jatha lisp)
public static LispBignum makeBignum(Jatha lisp, BigInteger value)
LispBignum
,
BigInteger
public static LispBignum makeBignum(Jatha lisp, LispInteger value)
public static LispBignum makeBignum(Jatha lisp, double value)
public static LispBignum makeBignum(Jatha lisp, long value)
public static LispReal makeReal(Jatha lisp, Double value)
LispInteger
,
LispValue
public static LispReal makeReal(Jatha lisp, double value)
public static LispReal makeReal(Jatha lisp, Float value)
public static LispReal makeReal(Jatha lisp, float value)
public static LispReal makeReal(Jatha lisp)
public static LispString makeString(Jatha lisp, String str)
LispString
,
LispValue
public static LispSymbol makeSymbol(Jatha lisp, String symbolName)
LispSymbol
,
LispValue
public static LispSymbol makeSymbol(Jatha lisp, LispString symbolName)
public static LispSymbol makeConstant(Jatha lisp, String symbolName)
LispConstant
,
LispSymbol
,
LispValue
public static LispSymbol makeConstant(Jatha lisp, LispString symbolName)
public static LispSymbol makeKeyword(Jatha lisp, String symbolName)
LispKeyword
,
LispConstant
,
LispSymbol
,
LispValue
public static LispSymbol makeKeyword(Jatha lisp, LispString symbolName)
public static StandardLispNIL makeNIL(Jatha lisp, String symbolName)
StandardLispNIL
,
LispCons
,
LispSymbol
,
LispValue
public static StandardLispNIL makeNIL(Jatha lisp, LispString symbolName)
public static LispValue toLisp(Jatha lisp, Object obj)
obj
-
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |