|
||||||||||
| 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, RubyObject.ObjectMethods, RubyObject.VariableTableEntry |
| Field Summary |
|---|
| Fields inherited from class org.jruby.RubyNumeric |
|---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
| Fields inherited from class org.jruby.RubyObject |
|---|
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, OBJECT_ALLOCATOR, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold |
| 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 |
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()
|
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 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_mod(ThreadContext context,
IRubyObject other)
rb_big_modulo |
IRubyObject |
op_mul(ThreadContext context,
IRubyObject other)
rb_big_mul |
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_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, convertToInteger, createIntegerClass, downto, even_p, induced_from, integer_p, odd_p, pred, succ, times, to_i, toFloat, upto |
| Methods inherited from class org.jruby.RubyNumeric |
|---|
abs, asNumeric, callCoerced, callCoerced, ceil, checkInt, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, div, doCoerce, eql_p, fix2int, fix2long, floor, getCoerced, initialize_copy, int2fix, modulo, newNumeric, nonzero_p, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, round, sadded, step, step, step, str2fnum, str2fnum, str2inum, str2inum, 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 CoreObjectTypegetNativeTypeIndex in class RubyObjectorg.jruby.runtime.ClassInde
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 op_uminus()
public IRubyObject op_plus(ThreadContext context,
IRubyObject other)
public IRubyObject op_minus(ThreadContext context,
IRubyObject other)
public IRubyObject op_mul(ThreadContext context,
IRubyObject 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_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 IRubyObject op_cmp(ThreadContext context,
IRubyObject other)
public IRubyObject op_equal(IRubyObject other)
public IRubyObject eql_p(IRubyObject other)
eql_p in class RubyObjectpublic RubyFixnum hash()
hash in class RubyObjectpublic 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 | |||||||||