|
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.StandardLispAtom org.jatha.dynatype.StandardLispNumber org.jatha.dynatype.StandardLispInteger
public class StandardLispInteger
Field Summary | |
---|---|
private long |
f_value
|
Fields inherited from class org.jatha.dynatype.StandardLispValue |
---|
f_lisp |
Constructor Summary | |
---|---|
StandardLispInteger()
|
|
StandardLispInteger(Jatha lisp)
|
|
StandardLispInteger(Jatha lisp,
long theValue)
|
Method Summary | |
---|---|
LispValue |
abs()
Integer implementation of abs. |
boolean |
basic_integerp()
Returns Java true if the object is an integer. |
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()
|
long |
getValue()
|
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)
|
Object |
toJava()
Returns a Java Long object with the value of this integer. |
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 |
---|
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 long f_value
Constructor Detail |
---|
public StandardLispInteger()
public StandardLispInteger(Jatha lisp, long theValue)
public StandardLispInteger(Jatha lisp)
Method Detail |
---|
public long getValue()
public double getDoubleValue()
LispNumber
getDoubleValue
in interface LispNumber
getDoubleValue
in class StandardLispNumber
public BigInteger getBigIntegerValue()
getBigIntegerValue
in interface LispNumber
public long getLongValue()
getLongValue
in interface LispNumber
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 boolean basic_integerp()
LispValue
basic_integerp
in interface LispValue
basic_integerp
in class StandardLispValue
public Object toJava()
toJava
in interface LispValue
toJava
in class StandardLispValue
public Object toJava(String typeHint)
toJava
in interface LispValue
toJava
in class StandardLispValue
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 LispValue abs()
abs
in interface LispValue
abs
in class StandardLispNumber
public LispValue eql(LispValue val)
LispValue
eql
in interface LispValue
eql
in class StandardLispNumber
public LispValue equal(LispValue val)
LispValue
equal
in interface LispValue
equal
in class StandardLispValue
public LispValue integerp()
LispValue
integerp
in interface LispValue
integerp
in class StandardLispValue
public LispValue type_of()
type_of
in interface LispValue
type_of
in class StandardLispValue
public LispValue typep(LispValue type)
typep
in interface LispValue
typep
in class StandardLispNumber
public LispValue zerop()
zerop
in interface LispValue
zerop
in class StandardLispValue
|
Jatha Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |