| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| public static final int | |
| public static final long | MAX
Hides org. |
| public static final long | |
| public static final long | |
| public static final long | |
| private static final BigInteger | |
| public static final long | |
| public static final boolean | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| private static RubyInteger | |
| private static RubyInteger | |
| private IRubyObject | |
| private static boolean | |
| public void | |
| public BigInteger | asBigInteger(ThreadContext
the current thread context context)Overrides org. Return a BigInteger representation of this numerical value |
| public double | asDouble(ThreadContext
the current thread context context)Overrides org. Return a double representation of this numerical value |
| public int | asInt(ThreadContext context)
Overrides org. Returns the value of this numeric and a java int. |
| public String | asJavaString()
Overrides org. Implements org. rb_to_id Will try to convert this object to a String using the Ruby "to_str" if the object isn't already a String. |
| public long | asLong(ThreadContext context)
Overrides org. Return the value of this numeric as a 64-bit long. |
| public IRubyObject | |
| private static RubyFixnum | |
| public IRubyObject | ceil(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_fix_ceil |
| private void | |
| private IRubyObject | |
| public final int | compareTo(IRubyObject
another IRubyObject other)Overrides org. Implements java. Compares this Ruby object with another. |
| private int | |
| public Object | |
| public RubyInteger | convertToInteger(String
conversion method to use e.g. "to_i" method)Overrides org. Implements org. Tries to convert this object to a Ruby Integer using the supplied conversion method. |
| public RubyRational | |
| public static RubyClass | |
| public IRubyObject | |
| public RubyArray | digits(ThreadContext context, IRubyObject baseArg)
Implements abstract org. rb_fix_digits |
| public IRubyObject | |
| private IRubyObject | |
| public final boolean | eql(IRubyObject other)
Overrides org. Implements org. short circuit for Fixnum key comparison |
| public IRubyObject | equal_p(ThreadContext
the thread context context, IRubyObject to compare with obj)Overrides org. rb_obj_equal Will use Java identity equality. |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public RubyBoolean | |
| public final boolean | |
| public IRubyObject | fdivDouble(ThreadContext context, IRubyObject y)
Implements abstract org.
|
| public static RubyFixnum | |
| private static IRubyObject | |
| private static long | |
| private static boolean | Returns: true if the value is in fixnum range, false otherwisethe value in question value)Determine whether the given long value is in fixnum range. |
| private RubyNumeric | |
| public IRubyObject | floor(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_fix_floor |
| public static RubyFixnum | |
| public double | |
| public Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public long | getLongValue()
Overrides org.
Deprecated
since 10.0.
Return the value of this numeric as a 64-bit long. |
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public long | Returns: the long valueWhen you know you are working directly with a Fixnum you can get
the long value it represents without using |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public final int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | id()
Overrides org. Implements org. rb_obj_id Return the internal id of an object. |
| public IRubyObject | idiv(ThreadContext context, IRubyObject other)
Implements abstract org. fix_div here is terrible MRI gotcha: 1.div 3.0$ -> 0 1 / 3.0 $ -> 0.3333333333333333 MRI is also able to do it in one place by looking at current frame in rb_num_coerce_bin: rb_funcall(x, ruby_frame->orig_func, 1, y); also note that RubyFloat doesn't override Numeric.div |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyInteger | |
| public static IRubyObject | |
| protected boolean | int_round_zero_p(ThreadContext context, int ndigits)
Overrides org.
|
| protected IRubyObject | |
| protected IRubyObject | |
| pack-priv IRubyObject | |
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| private static boolean | |
| public IRubyObject | |
| pack-priv final boolean | |
| public IRubyObject | |
| public final boolean | |
| private RubyString | |
| private RubyInteger | |
| public IRubyObject | |
| public static RubyFixnum | |
| public IRubyObject | |
| pack-priv IRubyObject | |
| private IRubyObject | |
| private IRubyObject | |
| private static RubyFixnum | |
| private static RubyInteger | |
| private IRubyObject | |
| public RubyInteger | |
| private static RubyInteger | |
| public static RubyFixnum | |
| public static RubyFixnum | |
| public final RubyFixnum | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public static RubyFixnum | |
| public IRubyObject | op_and(ThreadContext context, IRubyObject other)
Implements abstract org. fix_and |
| public IRubyObject | |
| protected IRubyObject | op_aref_subclass(ThreadContext context, IRubyObject other)
Implements abstract org. rb_fix_aref |
| public IRubyObject | op_cmp(ThreadContext context, IRubyObject other)
Implements abstract org. fix_cmp |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Implements abstract org. Implements org. fix_equal |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private IRubyObject | |
| public IRubyObject | op_lshift(ThreadContext context, IRubyObject other)
Implements abstract org. fix_lshift |
| public RubyInteger | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private IRubyObject | |
| public IRubyObject | op_minus(ThreadContext context, IRubyObject other)
Implements abstract org. fix_minus |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_mod(ThreadContext context, IRubyObject other)
Implements abstract org. fix_mod |
| public IRubyObject | |
| public IRubyObject | op_mul(ThreadContext context, IRubyObject other)
Implements abstract org. fix_mul |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_not_equal(ThreadContext
thread context context, IRubyObject other object other)Overrides org. fix_not_equal |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_or(ThreadContext context, IRubyObject other)
Implements abstract org. fix_or |
| public IRubyObject | |
| public IRubyObject | op_plus(ThreadContext context, IRubyObject other)
Implements abstract org. fix_plus |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_pow(ThreadContext context, IRubyObject other)
Implements abstract org. fix_pow |
| public IRubyObject | |
| public IRubyObject | op_rshift(ThreadContext context, IRubyObject other)
Implements abstract org. fix_rshift |
| public RubyInteger | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_xor(ThreadContext context, IRubyObject other)
Implements abstract org. fix_xor |
| public IRubyObject | |
| private RubyNumeric | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | remainder(ThreadContext context, IRubyObject y)
Overrides org. num_remainder |
| private RubyFixnum | |
| public int | |
| public RubyClass | singletonClass(ThreadContext
the current thread context context)Overrides org. Overrides default org. Will either return the existing singleton class for this object, or create a new one and return that. |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public IRubyObject | |
| public IRubyObject | |
| private RubyInteger | |
| private RubyInteger | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyFixnum | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | |
| public RubyString | |
| public RubyString | |
| public IRubyObject | |
| public IRubyObject | truncate(ThreadContext context, IRubyObject arg)
Implements abstract org. rb_fix_truncate |
| public static RubyFixnum | |
| public static RubyFixnum | |
| public static RubyFixnum | |
| public static RubyFixnum | |
| public IRubyObject | |
| public IRubyObject |