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

org::jruby::RubyFixnum Class Reference

Inheritance diagram for org::jruby::RubyFixnum:

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

List of all members.


Detailed Description

Implementation of the Fixnum class.

Author:
jpetersen

Definition at line 53 of file RubyFixnum.java.


Public Member Functions

IRubyObject abs ()
void addFinalizer (RubyProc finalizer)
IRubyObject and (IRubyObject other)
IRubyObject anyToString ()
IRubyObject 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 div_div (IRubyObject other)
IRubyObject div_slash (IRubyObject other)
IRubyObject divmod (IRubyObject other)
IRubyObject downto (IRubyObject to, Block block)
IRubyObject dup ()
final 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 ()
IRubyObject ge (IRubyObject other)
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 other)
RubyFixnum hash ()
final int hashCode ()
RubyFixnum id ()
IRubyObject id2name ()
synchronized RubyFixnum id_deprecated ()
IRubyObject idiv (IRubyObject other, String method)
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 le (IRubyObject other)
IRubyObject lshift (IRubyObject other)
IRubyObject lt (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)
RubyFixnum newFixnum (long newValue)
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 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 rev ()
IRubyObject round ()
IRubyObject rshift (IRubyObject other)
 RubyFixnum (Ruby runtime, long value)
 RubyFixnum (Ruby runtime)
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 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 ()
RubyString to_s (IRubyObject[] args)
IRubyObject to_sym ()
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 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 createFixnumClass (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 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 RubyFixnum minus_one (Ruby runtime)
static RubyFixnum newFixnum (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 RubyFixnum one (Ruby runtime)
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 RubyFixnum unmarshalFrom (UnmarshalStream input) throws java.io.IOException
static RubyFixnum zero (Ruby runtime)

Static Public Attributes

static double DBL_EPSILON = 2.2204460492503131e-16
static final byte EQUALEQUAL_SWITCHVALUE = 10
static final byte HASH_SWITCHVALUE = 7
static final long MAX = (1L<<(BIT_SIZE - 1)) - 1
static final long MAX_MARSHAL_FIXNUM = (1L << 30) - 1
static final long MIN = -1 * MAX - 1
static final long MIN_MARSHAL_FIXNUM = - (1L << 30)
static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final byte OP_GT_SWITCHVALUE = 8
static final byte OP_LE_SWITCHVALUE = 11
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 = 12
static final byte OP_TIMES_SWITCHVALUE = 9
static final byte TO_I_SWITCHVALUE = 5
static final byte TO_INT_SWITCHVALUE = 6
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

long value

Static Private Attributes

static final int BIT_SIZE = 64
static final long SIGN_BIT = (1L << (BIT_SIZE - 1))

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

Generated by  Doxygen 1.6.0   Back to index