Logo Search packages:      
Sourcecode: jruby0.9 version File versions  Download package

org::jruby::RubyBignum Class Reference

Inheritance diagram for org::jruby::RubyBignum:

org::jruby::RubyInteger org::jruby::RubyNumeric org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

Author:
jpetersen

Definition at line 54 of file RubyBignum.java.


Public Member Functions

IRubyObject abs ()
void addFinalizer (RubyProc finalizer)
IRubyObject and (IRubyObject other)
IRubyObject anyToString ()
RubyFixnum aref (IRubyObject other)
RubyNumeric asNumeric ()
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject ceil ()
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
RubyString chr ()
IRubyObject cmp (IRubyObject other)
IRubyObject coerce (IRubyObject other)
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
IRubyObject div (IRubyObject other)
IRubyObject divmod (IRubyObject other)
IRubyObject downto (IRubyObject to, Block block)
IRubyObject dup ()
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject floor ()
IRubyObject freeze ()
RubyBoolean frozen ()
double getDoubleValue ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
Class getJavaClass ()
long getLongValue ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getType ()
BigInteger getValue ()
RubyFixnum hash ()
int hashCode ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject init_copy (IRubyObject arg)
IRubyObject initialize (IRubyObject[] args, Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
IRubyObject int_p ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
IRubyObject lshift (IRubyObject other)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject minus (IRubyObject other)
IRubyObject mod (IRubyObject other)
IRubyObject modulo (IRubyObject other)
IRubyObject mul (IRubyObject other)
IRubyObject neg ()
IRubyObject nil_p ()
IRubyObject nonzero_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject or (IRubyObject other)
IRubyObject plus (IRubyObject other)
IRubyObject pow (IRubyObject other)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject quo (IRubyObject other)
IRubyObject rbClone ()
IRubyObject remainder (IRubyObject other)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
IRubyObject round ()
IRubyObject rshift (IRubyObject other)
 RubyBignum (Ruby runtime, BigInteger value)
IRubyObject sadded (IRubyObject name)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
IRubyObject send (IRubyObject[] args, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
RubyArray singleton_methods (IRubyObject[] args)
RubyFixnum size ()
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject step (IRubyObject[] args, Block block)
IRubyObject succ ()
IRubyObject taint ()
RubyBoolean tainted ()
IRubyObject times (Block block)
IRubyObject to_f ()
RubyInteger to_i ()
IRubyObject to_int ()
IRubyObject to_s ()
IRubyObject to_s (IRubyObject[] args)
String toString ()
IRubyObject truncate ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject uminus ()
IRubyObject untaint ()
IRubyObject uplus ()
IRubyObject upto (IRubyObject to, Block block)
IRubyObject xor (IRubyObject other)
IRubyObject zero_p ()

Static Public Member Functions

static double big2dbl (RubyBignum value)
static long big2long (RubyBignum value)
static RubyInteger bignorm (Ruby runtime, BigInteger bi)
static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static void checkInt (IRubyObject arg, long num)
static RubyClass createBignumClass (Ruby runtime)
static RubyClass createIntegerClass (Ruby runtime)
static RubyClass createNumericClass (Ruby runtime)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static IRubyObject dbl2num (Ruby runtime, double val)
static IRubyObject dbl_cmp (Ruby runtime, double a, double b)
static BigInteger fix2big (RubyFixnum arg)
static int fix2int (IRubyObject arg)
static long fix2long (IRubyObject arg)
static IRubyObject induced_from (IRubyObject recv, IRubyObject other)
static void initCopy (IRubyObject clone, IRubyObject original)
static RubyNumeric int2fix (Ruby runtime, long val)
static void marshalTo (RubyBignum bignum, MarshalStream output) throws IOException
static RubyBignum newBignum (Ruby runtime, String value)
static RubyBignum newBignum (Ruby runtime, BigInteger value)
static RubyBignum newBignum (Ruby runtime, double value)
static RubyBignum newBignum (Ruby runtime, long value)
static RubyNumeric newNumeric (Ruby runtime)
static double num2dbl (IRubyObject arg)
static IRubyObject num2fix (IRubyObject val)
static int num2int (IRubyObject arg)
static long num2long (IRubyObject arg)
static void puts (Object obj)
static RubyFloat str2fnum (Ruby runtime, RubyString arg, boolean strict)
static RubyFloat str2fnum (Ruby runtime, RubyString arg)
static RubyInteger str2inum (Ruby runtime, RubyString str, int base, boolean strict)
static RubyInteger str2inum (Ruby runtime, RubyString str, int base)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)
static RubyNumeric unmarshalFrom (UnmarshalStream input) throws IOException

Static Public Attributes

static double DBL_EPSILON = 2.2204460492503131e-16
static final byte EQUALEQUAL_SWITCHVALUE = 8
static final byte HASH_SWITCHVALUE = 6
static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final byte OP_LT_SWITCHVALUE = 3
static final byte OP_MINUS_SWITCHVALUE = 2
static final byte OP_PLUS_SWITCHVALUE = 1
static final byte OP_SPACESHIP_SWITCHVALUE = 9
static final byte OP_TIMES_SWITCHVALUE = 7
static final byte TO_I_SWITCHVALUE = 5
static final byte TO_S_SWITCHVALUE = 4

Protected Member Functions

IRubyObject callCoerced (String method, IRubyObject other)
IRubyObject callCoerced (String method, IRubyObject other, boolean err)
void checkFrozen ()
final IRubyObject coerceBin (String method, IRubyObject other)
final IRubyObject coerceBody (IRubyObject other)
final IRubyObject coerceCmp (String method, IRubyObject other)
final IRubyObject coerceRelOp (String method, IRubyObject other)
IRubyObject doClone ()
final RubyArray doCoerce (IRubyObject other, boolean err)
IRubyObject[] getCoerced (IRubyObject other, boolean error)
void testFrozen (String message)
RubyFloat toFloat ()

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Static Protected Attributes

static ObjectAllocator NUMERIC_ALLOCATOR

Private Attributes

final BigInteger value

Static Private Attributes

static final int BIT_SIZE = 64
static final BigInteger LONG_MAX = BigInteger.valueOf(MAX)
static final BigInteger LONG_MIN = BigInteger.valueOf(-MAX - 1)
static final long MAX = (1L << (BIT_SIZE - 1)) - 1

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index