|
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.StandardLispAtom
org.jatha.dynatype.StandardLispNumber
org.jatha.dynatype.StandardLispInteger
org.jatha.dynatype.StandardLispBignum
public class StandardLispBignum
Implements BigNums - large integers.
| Field Summary | |
|---|---|
private BigInteger |
value
|
| Fields inherited from class org.jatha.dynatype.StandardLispValue |
|---|
f_lisp |
| Fields inherited from interface org.jatha.dynatype.LispBignum |
|---|
MAXINT, MININT, ZERO |
| Constructor Summary | |
|---|---|
StandardLispBignum()
|
|
StandardLispBignum(Jatha lisp)
|
|
StandardLispBignum(Jatha lisp,
BigInteger theValue)
|
|
StandardLispBignum(Jatha lisp,
double theValue)
|
|
StandardLispBignum(Jatha lisp,
long theValue)
|
|
| Method Summary | |
|---|---|
LispValue |
abs()
Bignum implementation of abs. |
LispValue |
add(LispValue args)
ADD adds any combination of real or integer numbers. |
boolean |
basic_bignump()
Returns Java true if the object is a Bignum. |
boolean |
basic_integerp()
Returns Java true if the object is an integer. |
LispValue |
bignump()
Returns T if the object is a Bignum. |
LispValue |
divide(LispValue args)
DIVIDE adds any combination of real or integer numbers. |
LispValue |
eql(LispValue val)
Returns T if the argument is EQ to the object or if the arguments and object are numbers with equal values. |
LispValue |
equal(LispValue val)
Returns T if the argument is EQL or if two strings are STRING= or if two trees have EQUAL subtrees. |
BigInteger |
getBigIntegerValue()
|
double |
getDoubleValue()
Returns a double value corresponding to this value. |
long |
getLongValue()
|
LispValue |
integerp()
Returns T if the object is an Integer. |
void |
internal_prin1(PrintStream os)
|
void |
internal_princ(PrintStream os)
|
void |
internal_print(PrintStream os)
|
LispValue |
multiply(LispValue args)
MULTIPLY adds any combination of real or integer numbers. |
LispValue |
negate()
Returns the negative of the given number. |
LispValue |
subtract(LispValue args)
SUBTRACT adds any combination of real or integer numbers. |
Object |
toJava(String typeHint)
Returns a Java Double, Float or Integer object, depending on the typeHint. |
String |
toString()
toString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string. |
LispValue |
type_of()
|
LispValue |
typep(LispValue type)
|
LispValue |
zerop()
|
| Methods inherited from class org.jatha.dynatype.StandardLispInteger |
|---|
getValue, toJava |
| Methods inherited from class org.jatha.dynatype.StandardLispNumber |
|---|
acos, asin, atan, atan2, basic_constantp, basic_numberp, ceiling, constantp, cos, cot, csc, degreesToRadians, equalNumeric, factorial, floor, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, max, min, numberp, radiansToDegrees, reciprocal, sec, sin, sqrt, tan |
| Methods inherited from class org.jatha.dynatype.StandardLispAtom |
|---|
atom, basic_atom |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private BigInteger value
| Constructor Detail |
|---|
public StandardLispBignum()
public StandardLispBignum(Jatha lisp,
BigInteger theValue)
public StandardLispBignum(Jatha lisp,
long theValue)
public StandardLispBignum(Jatha lisp,
double theValue)
public StandardLispBignum(Jatha lisp)
| Method Detail |
|---|
public double getDoubleValue()
LispNumber
getDoubleValue in interface LispNumbergetDoubleValue in class StandardLispIntegerpublic BigInteger getBigIntegerValue()
getBigIntegerValue in interface LispNumbergetBigIntegerValue in class StandardLispIntegerpublic long getLongValue()
getLongValue in interface LispNumbergetLongValue in class StandardLispIntegerpublic void internal_princ(PrintStream os)
internal_princ in interface LispValueinternal_princ in class StandardLispIntegerpublic void internal_prin1(PrintStream os)
internal_prin1 in interface LispValueinternal_prin1 in class StandardLispIntegerpublic void internal_print(PrintStream os)
internal_print in interface LispValueinternal_print in class StandardLispIntegerpublic boolean basic_bignump()
LispValue
basic_bignump in interface LispValuebasic_bignump in class StandardLispValuepublic boolean basic_integerp()
LispValue
basic_integerp in interface LispValuebasic_integerp in class StandardLispIntegerpublic Object toJava(String typeHint)
toJava in interface LispValuetoJava in class StandardLispIntegerpublic String toString()
StandardLispValuetoString() returns a printed representation
of the form (as printed by (prin1)) in
a Java string.
toString in interface LispValuetoString in class StandardLispIntegerpublic LispValue abs()
abs in interface LispValueabs in class StandardLispIntegerpublic LispValue eql(LispValue val)
LispValue
eql in interface LispValueeql in class StandardLispIntegerpublic LispValue equal(LispValue val)
LispValue
equal in interface LispValueequal in class StandardLispIntegerpublic LispValue add(LispValue args)
StandardLispNumber
add in interface LispValueadd in class StandardLispNumberLispReal,
LispIntegerpublic LispValue divide(LispValue args)
divide in interface LispValuedivide in class StandardLispNumberLispReal,
LispIntegerpublic LispValue multiply(LispValue args)
multiply in interface LispValuemultiply in class StandardLispNumberLispReal,
LispIntegerpublic LispValue subtract(LispValue args)
subtract in interface LispValuesubtract in class StandardLispNumberLispReal,
LispIntegerpublic LispValue bignump()
LispValue
bignump in interface LispValuebignump in class StandardLispValuepublic LispValue integerp()
LispValue
integerp in interface LispValueintegerp in class StandardLispIntegerpublic LispValue negate()
StandardLispNumber
negate in interface LispValuenegate in class StandardLispNumberpublic LispValue type_of()
type_of in interface LispValuetype_of in class StandardLispIntegerpublic LispValue typep(LispValue type)
typep in interface LispValuetypep in class StandardLispIntegerpublic LispValue zerop()
zerop in interface LispValuezerop in class StandardLispInteger
|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||