|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyInteger
org.jruby.RubyBignum
public class RubyBignum
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyNumeric |
|---|
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeException |
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Finalizer |
| Field Summary | |
|---|---|
static byte |
EQUALEQUAL_SWITCHVALUE
|
static byte |
HASH_SWITCHVALUE
|
static byte |
INSPECT_SWITCHVALUE
|
static byte |
OP_LT_SWITCHVALUE
|
static byte |
OP_MINUS_SWITCHVALUE
|
static byte |
OP_PLUS_SWITCHVALUE
|
static byte |
OP_SPACESHIP_SWITCHVALUE
|
static byte |
OP_TIMES_SWITCHVALUE
|
static byte |
TO_I_SWITCHVALUE
|
static byte |
TO_S_SWITCHVALUE
|
| Fields inherited from class org.jruby.RubyNumeric |
|---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
| Fields inherited from class org.jruby.RubyObject |
|---|
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Constructor Summary | |
|---|---|
RubyBignum(Ruby runtime,
java.math.BigInteger value)
|
|
| Method Summary | |
|---|---|
IRubyObject |
abs()
rb_big_abs |
IRubyObject |
and(IRubyObject other)
rb_big_and |
RubyFixnum |
aref(IRubyObject other)
rb_big_aref |
static double |
big2dbl(RubyBignum value)
rb_big2dbl |
static long |
big2long(RubyBignum value)
rb_big2long |
static RubyInteger |
bignorm(Ruby runtime,
java.math.BigInteger bi)
rb_big_norm |
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
IRubyObject |
cmp(IRubyObject other)
rb_big_cmp |
IRubyObject |
coerce(IRubyObject other)
rb_big_coerce |
static RubyClass |
createBignumClass(Ruby runtime)
|
IRubyObject |
div(IRubyObject other)
rb_big_div |
IRubyObject |
divmod(IRubyObject other)
rb_big_divmod |
IRubyObject |
eql_p(IRubyObject other)
rb_big_eql |
IRubyObject |
equal(IRubyObject other)
rb_big_eq |
static java.math.BigInteger |
fix2big(RubyFixnum arg)
rb_int2big |
double |
getDoubleValue()
|
long |
getLongValue()
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
java.math.BigInteger |
getValue()
Getter for property value. |
RubyFixnum |
hash()
rb_big_hash |
IRubyObject |
lshift(IRubyObject other)
rb_big_lshift |
static void |
marshalTo(RubyBignum bignum,
MarshalStream output)
|
IRubyObject |
minus(IRubyObject other)
rb_big_minus |
IRubyObject |
mod(IRubyObject other)
rb_big_modulo |
IRubyObject |
mul(IRubyObject other)
rb_big_mul |
IRubyObject |
neg()
rb_big_neg |
static RubyBignum |
newBignum(Ruby runtime,
java.math.BigInteger value)
|
static RubyBignum |
newBignum(Ruby runtime,
double value)
|
static RubyBignum |
newBignum(Ruby runtime,
long value)
|
static RubyBignum |
newBignum(Ruby runtime,
java.lang.String value)
|
IRubyObject |
or(IRubyObject other)
rb_big_or |
IRubyObject |
plus(IRubyObject other)
rb_big_plus |
IRubyObject |
pow(IRubyObject other)
rb_big_pow |
IRubyObject |
quo(IRubyObject other)
rb_big_quo |
IRubyObject |
remainder(IRubyObject other)
rb_big_remainder |
IRubyObject |
rshift(IRubyObject other)
rb_big_rshift |
RubyFixnum |
size()
rb_big_size |
IRubyObject |
to_f()
rb_big_to_f |
IRubyObject |
to_s(IRubyObject[] args)
rb_big_to_s |
IRubyObject |
uminus()
rb_big_uminus |
static RubyNumeric |
unmarshalFrom(UnmarshalStream input)
|
IRubyObject |
xor(IRubyObject other)
rb_big_xor |
| Methods inherited from class org.jruby.RubyInteger |
|---|
chr, convertToInteger, createIntegerClass, downto, induced_from, int_p, succ, times, to_i, toFloat, upto |
| Methods inherited from class org.jruby.RubyNumeric |
|---|
asNumeric, callCoerced, callCoerced, ceil, checkInt, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, doCoerce, fix2int, fix2long, floor, getCoerced, init_copy, int2fix, modulo, newNumeric, nonzero_p, num2dbl, num2fix, num2int, num2long, round, sadded, step, str2fnum, str2fnum, str2inum, str2inum, to_int, truncate, uplus, zero_p |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte OP_PLUS_SWITCHVALUE
public static final byte OP_MINUS_SWITCHVALUE
public static final byte OP_LT_SWITCHVALUE
public static final byte TO_S_SWITCHVALUE
public static final byte TO_I_SWITCHVALUE
public static final byte HASH_SWITCHVALUE
public static final byte OP_TIMES_SWITCHVALUE
public static final byte EQUALEQUAL_SWITCHVALUE
public static final byte OP_SPACESHIP_SWITCHVALUE
public static final byte INSPECT_SWITCHVALUE
| Constructor Detail |
|---|
public RubyBignum(Ruby runtime,
java.math.BigInteger value)
| Method Detail |
|---|
public static RubyClass createBignumClass(Ruby runtime)
public IRubyObject callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
callMethod in interface IRubyObjectcallMethod in class RubyObjectpublic int getNativeTypeIndex()
RubyObject
getNativeTypeIndex in interface IRubyObjectgetNativeTypeIndex in class RubyObject
public static RubyBignum newBignum(Ruby runtime,
long value)
public static RubyBignum newBignum(Ruby runtime,
double value)
public static RubyBignum newBignum(Ruby runtime,
java.math.BigInteger value)
public static RubyBignum newBignum(Ruby runtime,
java.lang.String value)
public double getDoubleValue()
getDoubleValue in class RubyNumericpublic long getLongValue()
getLongValue in class RubyNumericpublic java.math.BigInteger getValue()
public static RubyInteger bignorm(Ruby runtime,
java.math.BigInteger bi)
public static long big2long(RubyBignum value)
public static double big2dbl(RubyBignum value)
public static java.math.BigInteger fix2big(RubyFixnum arg)
public IRubyObject to_s(IRubyObject[] args)
public IRubyObject coerce(IRubyObject other)
coerce in class RubyNumericpublic IRubyObject uminus()
uminus in class RubyNumericpublic IRubyObject plus(IRubyObject other)
public IRubyObject minus(IRubyObject other)
public IRubyObject mul(IRubyObject other)
public IRubyObject div(IRubyObject other)
div in class RubyNumericpublic IRubyObject divmod(IRubyObject other)
divmod in class RubyNumericpublic IRubyObject mod(IRubyObject other)
public IRubyObject remainder(IRubyObject other)
remainder in class RubyNumericpublic IRubyObject quo(IRubyObject other)
quo in class RubyNumericpublic IRubyObject pow(IRubyObject other)
public IRubyObject and(IRubyObject other)
public IRubyObject or(IRubyObject other)
public IRubyObject xor(IRubyObject other)
public IRubyObject neg()
public IRubyObject lshift(IRubyObject other)
public IRubyObject rshift(IRubyObject other)
public RubyFixnum aref(IRubyObject other)
public IRubyObject cmp(IRubyObject other)
cmp in class RubyNumericpublic IRubyObject equal(IRubyObject other)
equal in interface IRubyObjectequal in class RubyNumericpublic IRubyObject eql_p(IRubyObject other)
eql_p in class RubyNumericpublic RubyFixnum hash()
hash in class RubyObjectpublic IRubyObject to_f()
public IRubyObject abs()
abs in class RubyNumericpublic RubyFixnum size()
public static void marshalTo(RubyBignum bignum,
MarshalStream output)
throws java.io.IOException
java.io.IOException
public static RubyNumeric unmarshalFrom(UnmarshalStream input)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||