Logo Search packages:      
Sourcecode: jruby1.0 version File versions

org::jruby::RubyBigDecimal Class Reference

Inheritance diagram for org::jruby::RubyBigDecimal:

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

List of all members.


Detailed Description

Author:
Ola Bini

Definition at line 42 of file RubyBigDecimal.java.


Public Member Functions

IRubyObject abs ()
IRubyObject add (IRubyObject[] args)
void addFinalizer (RubyProc finalizer)
IRubyObject anyToString ()
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, 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 callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject ceil ()
IRubyObject ceil (IRubyObject arg)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
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 div (IRubyObject[] args)
IRubyObject divmod (IRubyObject arg)
IRubyObject dup ()
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject arg)
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 exponent ()
IRubyObject extend (IRubyObject[] args)
IRubyObject finite_p ()
IRubyObject fix ()
IRubyObject floor ()
IRubyObject floor (IRubyObject arg)
IRubyObject frac ()
IRubyObject freeze ()
RubyBoolean frozen ()
IRubyObject ge (IRubyObject arg)
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 ()
IRubyObject gt (IRubyObject arg)
RubyFixnum hash ()
int hashCode ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject infinite_p ()
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject init_copy (IRubyObject arg)
IRubyObject initialize (IRubyObject[] args, Block unusedBlock)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
IRubyObject instance_exec (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 le (IRubyObject arg)
IRubyObject lt (IRubyObject arg)
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 mod (IRubyObject arg)
IRubyObject modulo (IRubyObject other)
IRubyObject mult (IRubyObject[] args)
RubyNumeric multiplyWith (RubyBignum value)
RubyNumeric multiplyWith (RubyFloat value)
RubyNumeric multiplyWith (RubyInteger value)
IRubyObject nan_p ()
IRubyObject ne (IRubyObject arg)
IRubyObject nil_p ()
IRubyObject nonzero_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject power (IRubyObject arg)
IRubyObject precs ()
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject quo (IRubyObject other)
IRubyObject rbClone (Block unusedBlock)
IRubyObject remainder (IRubyObject arg)
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 round (IRubyObject[] args)
 RubyBigDecimal (Ruby runtime, BigDecimal value)
 RubyBigDecimal (Ruby runtime, RubyClass klass)
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)
IRubyObject sign ()
RubyArray singleton_methods (IRubyObject[] args)
IRubyObject spaceship (IRubyObject arg)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject split ()
IRubyObject sqrt (IRubyObject[] args)
IRubyObject step (IRubyObject[] args, Block block)
IRubyObject sub (IRubyObject[] args)
IRubyObject taint ()
RubyBoolean tainted ()
IRubyObject to_f ()
IRubyObject to_i ()
IRubyObject to_int ()
IRubyObject to_s ()
IRubyObject to_s (IRubyObject[] args)
String toString ()
IRubyObject truncate ()
IRubyObject truncate (IRubyObject[] args)
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject uminus ()
IRubyObject untaint ()
IRubyObject uplus ()
IRubyObject zero_p ()

Static Public Member Functions

static IRubyObject _load (IRubyObject recv, IRubyObject p1, Block block)
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 createBigDecimal (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 IRubyObject double_fig (IRubyObject recv)
static int fix2int (IRubyObject arg)
static long fix2long (IRubyObject arg)
static void initCopy (IRubyObject clone, IRubyObject original)
static RubyNumeric int2fix (Ruby runtime, long val)
static IRubyObject limit (IRubyObject recv, IRubyObject arg1)
static IRubyObject mode (IRubyObject recv, IRubyObject mode, IRubyObject value)
static RubyBigDecimal newBigDecimal (IRubyObject recv, IRubyObject[] args, Block unusedBlock)
static RubyBigDecimal newInstance (IRubyObject recv, IRubyObject[] args, Block unusedBlock)
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 IRubyObject ver (IRubyObject recv)

Static Public Attributes

static double DBL_EPSILON = 2.2204460492503131e-16
static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR

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)

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Static Protected Attributes

static ObjectAllocator NUMERIC_ALLOCATOR

Private Member Functions

IRubyObject cmp (IRubyObject r, char op)
int exp ()
RubyBigDecimal getVpValue (IRubyObject v, boolean must)
String removeTrailingZeroes (String in)
RubyBigDecimal setResult (int scale)
RubyBigDecimal setResult ()
String toSpecialString (BigDecimal abs)

Private Attributes

BigDecimal value

Static Private Attributes

static final ObjectAllocator BIGDECIMAL_ALLOCATOR

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

Generated by  Doxygen 1.6.0   Back to index