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

org::jruby::RubyNumeric Class Reference

Inheritance diagram for org::jruby::RubyNumeric:

org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject org::jruby::RubyBigDecimal org::jruby::RubyFloat org::jruby::RubyInteger org::jruby::RubyBignum org::jruby::RubyFixnum

List of all members.


Detailed Description

Base class for all numerical types in ruby.

Definition at line 56 of file RubyNumeric.java.


Public Member Functions

IRubyObject abs ()
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 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 divmod (IRubyObject other)
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 ()
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)
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 modulo (IRubyObject other)
IRubyObject nil_p ()
IRubyObject nonzero_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject quo (IRubyObject other)
IRubyObject rbClone ()
IRubyObject remainder (IRubyObject y)
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 ()
 RubyNumeric (Ruby runtime, RubyClass metaClass)
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)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject step (IRubyObject[] args, Block block)
IRubyObject taint ()
RubyBoolean tainted ()
IRubyObject to_int ()
IRubyObject to_s ()
String toString ()
IRubyObject truncate ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject uminus ()
IRubyObject untaint ()
IRubyObject uplus ()
IRubyObject zero_p ()

Static Public Member Functions

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 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 int fix2int (IRubyObject arg)
static long fix2long (IRubyObject arg)
static void initCopy (IRubyObject clone, IRubyObject original)
static RubyNumeric int2fix (Ruby runtime, long val)
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 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

Classes

class  InvalidIntegerException
class  NumberTooLargeException

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

Generated by  Doxygen 1.6.0   Back to index