|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyBasicObject
org.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.ObjectMethods |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyNumeric |
---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
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 |
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 |
coerce(IRubyObject other)
rb_big_coerce |
int |
compareTo(IRubyObject other)
|
static RubyClass |
createBignumClass(Ruby runtime)
|
IRubyObject |
divmod(ThreadContext context,
IRubyObject other)
rb_big_divmod |
IRubyObject |
eql_p(IRubyObject other)
rb_big_eql |
static java.math.BigInteger |
fix2big(RubyFixnum arg)
rb_int2big |
double |
getDoubleValue()
|
java.lang.Class<?> |
getJavaClass()
Will return the Java interface that most closely can represent this object, when working through JAva integration translations. |
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 |
static java.math.BigInteger |
long2big(long arg)
|
static void |
marshalTo(RubyBignum bignum,
MarshalStream output)
|
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 |
op_and(ThreadContext context,
IRubyObject other)
rb_big_and |
RubyFixnum |
op_aref(IRubyObject other)
rb_big_aref |
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject other)
rb_big_cmp |
IRubyObject |
op_div(ThreadContext context,
IRubyObject other)
rb_big_div |
IRubyObject |
op_equal(IRubyObject other)
rb_big_eq |
IRubyObject |
op_idiv(ThreadContext context,
IRubyObject other)
rb_big_idiv |
IRubyObject |
op_lshift(IRubyObject other)
rb_big_lshift |
IRubyObject |
op_minus(ThreadContext context,
IRubyObject other)
rb_big_minus |
IRubyObject |
op_minus(ThreadContext context,
long other)
|
IRubyObject |
op_mod(ThreadContext context,
IRubyObject other)
rb_big_modulo |
IRubyObject |
op_mul(ThreadContext context,
IRubyObject other)
rb_big_mul |
IRubyObject |
op_mul(ThreadContext context,
long other)
|
IRubyObject |
op_neg()
rb_big_neg |
IRubyObject |
op_or(ThreadContext context,
IRubyObject other)
rb_big_or |
IRubyObject |
op_plus(ThreadContext context,
IRubyObject other)
rb_big_plus |
IRubyObject |
op_plus(ThreadContext context,
long other)
|
IRubyObject |
op_pow_19(ThreadContext context,
IRubyObject other)
rb_big_pow |
IRubyObject |
op_pow(ThreadContext context,
IRubyObject other)
rb_big_pow |
IRubyObject |
op_rshift(IRubyObject other)
rb_big_rshift |
IRubyObject |
op_uminus()
rb_big_uminus |
IRubyObject |
op_xor(ThreadContext context,
IRubyObject other)
rb_big_xor |
IRubyObject |
quo(ThreadContext context,
IRubyObject other)
rb_big_quo |
IRubyObject |
remainder(ThreadContext context,
IRubyObject other)
rb_big_remainder |
IRubyObject |
size()
rb_big_size |
IRubyObject |
to_f()
rb_big_to_f |
IRubyObject |
to_s(IRubyObject[] args)
rb_big_to_s |
static RubyNumeric |
unmarshalFrom(UnmarshalStream input)
|
Methods inherited from class org.jruby.RubyInteger |
---|
chr, chr19, chr19, convertToInteger, createIntegerClass, denominator, downto, downto19, even_p, gcd, gcdlcm, induced_from, integer_p, lcm, numerator, odd_p, ord, pred, round, round19, round19, succ, times, times19, to_i, to_r, toFloat, upto, upto19 |
Methods inherited from class org.jruby.RubyNumeric |
---|
abs, abs2, arg, asNumeric, callCoerced, callCoerced, ceil, checkInt, coerceBin, coerceBody, coerceCmp, coerceRelOp, conjugate, createNumericClass, dbl_cmp, dbl2num, div, doCoerce, eql_p, fdiv, fix2int, fix2int, fix2long, floatStep, floor, getCoerced, image, initialize_copy, int2fix, magnitude, modulo, newNumeric, nonzero_p, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, polar, quo_19, real, rect, sadded, scalar_p, step, step, step, step19, step19, str2fnum, str2fnum, str2inum, str2inum, to_c, to_int, truncate, zero_p |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RubyBignum(Ruby runtime, java.math.BigInteger value)
Method Detail |
---|
public static RubyClass createBignumClass(Ruby runtime)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface CoreObjectType
getNativeTypeIndex
in class RubyObject
org.jruby.runtime.ClassInde
public java.lang.Class<?> getJavaClass()
RubyBasicObject
getJavaClass
in interface IRubyObject
getJavaClass
in class RubyBasicObject
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 RubyNumeric
public long getLongValue()
getLongValue
in class RubyNumeric
public 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 static java.math.BigInteger long2big(long arg)
public IRubyObject to_s(IRubyObject[] args)
public IRubyObject coerce(IRubyObject other)
coerce
in class RubyNumeric
public IRubyObject op_uminus()
public IRubyObject op_plus(ThreadContext context, IRubyObject other)
public IRubyObject op_plus(ThreadContext context, long other)
public IRubyObject op_minus(ThreadContext context, IRubyObject other)
public IRubyObject op_minus(ThreadContext context, long other)
public IRubyObject op_mul(ThreadContext context, IRubyObject other)
public IRubyObject op_mul(ThreadContext context, long other)
public IRubyObject op_div(ThreadContext context, IRubyObject other)
public IRubyObject op_idiv(ThreadContext context, IRubyObject other)
public IRubyObject divmod(ThreadContext context, IRubyObject other)
divmod
in class RubyNumeric
public IRubyObject op_mod(ThreadContext context, IRubyObject other)
public IRubyObject remainder(ThreadContext context, IRubyObject other)
remainder
in class RubyNumeric
public IRubyObject quo(ThreadContext context, IRubyObject other)
quo
in class RubyNumeric
public IRubyObject op_pow(ThreadContext context, IRubyObject other)
public IRubyObject op_pow_19(ThreadContext context, IRubyObject other)
public IRubyObject op_and(ThreadContext context, IRubyObject other)
public IRubyObject op_or(ThreadContext context, IRubyObject other)
public IRubyObject op_xor(ThreadContext context, IRubyObject other)
public IRubyObject op_neg()
public IRubyObject op_lshift(IRubyObject other)
public IRubyObject op_rshift(IRubyObject other)
public RubyFixnum op_aref(IRubyObject other)
public final int compareTo(IRubyObject other)
compareTo
in interface java.lang.Comparable<IRubyObject>
compareTo
in class RubyBasicObject
public IRubyObject op_cmp(ThreadContext context, IRubyObject other)
public IRubyObject op_equal(IRubyObject other)
public IRubyObject eql_p(IRubyObject other)
eql_p
in class RubyObject
public RubyFixnum hash()
hash
in class RubyObject
public IRubyObject to_f()
public IRubyObject abs()
public IRubyObject 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 |