|
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.StandardLispReal
public class StandardLispReal
| Field Summary | |
|---|---|
private double |
f_value
|
| Fields inherited from class org.jatha.dynatype.StandardLispValue |
|---|
f_lisp |
| Constructor Summary | |
|---|---|
StandardLispReal()
|
|
StandardLispReal(Jatha lisp)
|
|
StandardLispReal(Jatha lisp,
double theValue)
|
|
| Method Summary | |
|---|---|
boolean |
basic_floatp()
Returns Java true if the object is a floating-point number. |
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. |
LispValue |
floatp()
Returns T if the object is a floating-point number. |
BigInteger |
getBigIntegerValue()
|
double |
getDoubleValue()
Returns a double value corresponding to this value. |
long |
getLongValue()
|
void |
internal_prin1(PrintStream os)
|
void |
internal_princ(PrintStream os)
|
void |
internal_print(PrintStream os)
|
Object |
toJava()
Returns a Java Double object with the value of this number. |
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.StandardLispNumber |
|---|
abs, acos, add, asin, atan, atan2, basic_constantp, basic_numberp, ceiling, constantp, cos, cot, csc, degreesToRadians, divide, equalNumeric, factorial, floor, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, max, min, multiply, negate, numberp, radiansToDegrees, reciprocal, sec, sin, sqrt, subtract, 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 double f_value
| Constructor Detail |
|---|
public StandardLispReal()
public StandardLispReal(Jatha lisp,
double theValue)
public StandardLispReal(Jatha lisp)
| Method Detail |
|---|
public void internal_print(PrintStream os)
internal_print in interface LispValueinternal_print in class StandardLispValuepublic void internal_prin1(PrintStream os)
internal_prin1 in interface LispValueinternal_prin1 in class StandardLispValuepublic void internal_princ(PrintStream os)
internal_princ in interface LispValueinternal_princ in class StandardLispValuepublic double getDoubleValue()
LispNumber
getDoubleValue in interface LispNumbergetDoubleValue in class StandardLispNumberpublic BigInteger getBigIntegerValue()
getBigIntegerValue in interface LispNumberpublic long getLongValue()
getLongValue in interface LispNumberpublic Object toJava()
toJava in interface LispValuetoJava in class StandardLispValuepublic Object toJava(String typeHint)
toJava in interface LispValuetoJava in class StandardLispValuepublic 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 boolean basic_floatp()
LispValue
basic_floatp in interface LispValuebasic_floatp in class StandardLispValuepublic LispValue eql(LispValue val)
LispValue
eql in interface LispValueeql in class StandardLispNumberpublic LispValue equal(LispValue val)
LispValue
equal in interface LispValueequal in class StandardLispValuepublic LispValue floatp()
LispValue
floatp in interface LispValuefloatp in class StandardLispValuepublic LispValue type_of()
type_of in interface LispValuetype_of in class StandardLispValuepublic LispValue typep(LispValue type)
typep in interface LispValuetypep in class StandardLispNumberpublic LispValue zerop()
zerop in interface LispValuezerop in class StandardLispValue
|
Jatha Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||