public class RubyFixnum extends RubyInteger implements Constantizable
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeExceptionRubyObject.DataRubyBasicObject.Finalizer| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_OFFSET |
static long |
MAX |
static long |
MAX_MARSHAL_FIXNUM |
static long |
MIN |
static long |
MIN_MARSHAL_FIXNUM |
static long |
SIGN_BIT |
static boolean |
USE_CACHE |
SINGLE_CHAR_BYTELISTS19DBL_EPSILON, NUMERIC_ALLOCATORIVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStampNULL_ARRAY| Constructor and Description |
|---|
RubyFixnum(Ruby runtime) |
RubyFixnum(Ruby runtime,
long value) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
abs(ThreadContext context)
fix_abs
|
java.lang.String |
asJavaString()
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.
|
IRubyObject |
bit_length(ThreadContext context) |
IRubyObject |
ceil(ThreadContext context,
IRubyObject arg)
rb_fix_ceil
|
int |
compareTo(IRubyObject other)
Compares this Ruby object with another.
|
java.lang.Object |
constant() |
RubyInteger |
convertToInteger(java.lang.String method)
Tries to convert this object to a Ruby Integer using the supplied conversion method.
|
RubyRational |
convertToRational() |
static RubyClass |
createFixnumClass(Ruby runtime) |
IRubyObject |
denominator(ThreadContext context)
numeric_denominator
|
RubyArray |
digits(ThreadContext context,
IRubyObject base)
rb_fix_digits
|
IRubyObject |
divmod(ThreadContext context,
IRubyObject other)
fix_divmod
|
boolean |
eql(IRubyObject other)
short circuit for Fixnum key comparison
|
IRubyObject |
equal_p(ThreadContext context,
IRubyObject obj)
rb_obj_equal
Will use Java identity equality.
|
boolean |
equals(java.lang.Object other)
This override does not do a "checked" dispatch.
|
RubyBoolean |
even_p(ThreadContext context) |
boolean |
fastEqual(RubyFixnum other) |
IRubyObject |
fdivDouble(ThreadContext context,
IRubyObject y) |
static RubyFixnum |
five(Ruby runtime) |
IRubyObject |
floor(ThreadContext context,
IRubyObject arg)
rb_fix_floor
|
static RubyFixnum |
four(Ruby runtime) |
java.math.BigInteger |
getBigIntegerValue() |
double |
getDoubleValue() |
int |
getIntValue()
Return the value of this numeric as a 32-bit long.
|
java.lang.Class<?> |
getJavaClass()
Will return the Java interface that most closely can represent
this object, when working through Java integration translations.
|
long |
getLongValue()
Return the value of this numeric as a 64-bit long.
|
ClassIndex |
getNativeClassIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
RubyClass |
getSingletonClass()
rb_singleton_class
Note: this method is specialized for RubyFixnum, RubySymbol,
RubyNil and RubyBoolean
Will either return the existing singleton class for this
object, or create a new one and return that.
|
RubyFixnum |
hash()
rb_obj_id
Will return the hash code of this object.
|
int |
hashCode()
This override does not do "checked" dispatch since Object usually has #hash defined.
|
IRubyObject |
id()
rb_obj_id
Return the internal id of an object.
|
IRubyObject |
idiv(ThreadContext context,
IRubyObject other)
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
|
IRubyObject |
idiv(ThreadContext context,
IRubyObject other,
CallSite site) |
IRubyObject |
idiv(ThreadContext context,
IRubyObject other,
java.lang.String method)
Deprecated.
|
IRubyObject |
idiv(ThreadContext context,
long other) |
IRubyObject |
idiv(ThreadContext context,
long y,
java.lang.String method)
Deprecated.
|
static IRubyObject |
induced_from(IRubyObject recv,
IRubyObject other)
Deprecated.
|
protected boolean |
int_round_zero_p(ThreadContext context,
int ndigits) |
protected IRubyObject |
intPowTmp1(ThreadContext context,
RubyInteger y,
long mm,
boolean negaFlg) |
protected IRubyObject |
intPowTmp2(ThreadContext context,
IRubyObject y,
long mm,
boolean negaFlg)
Deprecated.
|
boolean |
isImmediate()
Is object immediate (def: Fixnum, Symbol, true, false, nil?).
|
IRubyObject |
isNegative(ThreadContext context)
num_negative_p
|
IRubyObject |
isPositive(ThreadContext context)
num_positive_p
|
boolean |
isZero() |
IRubyObject |
magnitude(ThreadContext context)
fix_abs/1.9
|
static RubyFixnum |
minus_one(Ruby runtime) |
IRubyObject |
modulo(ThreadContext context,
IRubyObject other)
num_modulo
|
RubyInteger |
negate() |
RubyFixnum |
newFixnum(long newValue)
Deprecated.
|
static RubyFixnum |
newFixnum(Ruby runtime,
long value) |
IRubyObject |
nonzero_p(ThreadContext context)
num_nonzero_p
|
IRubyObject |
numerator(ThreadContext context)
numeric_numerator
|
RubyBoolean |
odd_p(ThreadContext context) |
static RubyFixnum |
one(Ruby runtime) |
IRubyObject |
op_and(ThreadContext context,
IRubyObject other)
fix_and
|
IRubyObject |
op_and(ThreadContext context,
long other) |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject other)
fix_aref
|
IRubyObject |
op_cmp(ThreadContext context,
double other) |
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject other)
fix_cmp
|
IRubyObject |
op_cmp(ThreadContext context,
long other) |
IRubyObject |
op_div(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_div(ThreadContext context,
long other) |
boolean |
op_equal_boolean(ThreadContext context,
long other) |
IRubyObject |
op_equal(ThreadContext context,
double other) |
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
fix_equal
|
IRubyObject |
op_equal(ThreadContext context,
long other) |
boolean |
op_ge_boolean(ThreadContext context,
long other) |
IRubyObject |
op_ge(ThreadContext context,
IRubyObject other)
fix_ge
|
IRubyObject |
op_ge(ThreadContext context,
long other) |
boolean |
op_gt_boolean(ThreadContext context,
long other) |
IRubyObject |
op_gt(ThreadContext context,
IRubyObject other)
fix_gt
|
IRubyObject |
op_gt(ThreadContext context,
long other) |
boolean |
op_le_boolean(ThreadContext context,
long other) |
IRubyObject |
op_le(ThreadContext context,
IRubyObject other)
fix_le
|
IRubyObject |
op_le(ThreadContext context,
long other) |
IRubyObject |
op_lshift(long width)
Deprecated.
|
IRubyObject |
op_lshift(ThreadContext context,
IRubyObject other)
fix_lshift
|
RubyInteger |
op_lshift(ThreadContext context,
long width) |
boolean |
op_lt_boolean(ThreadContext context,
long other) |
IRubyObject |
op_lt(ThreadContext context,
IRubyObject other)
fix_lt
|
IRubyObject |
op_lt(ThreadContext context,
long other) |
IRubyObject |
op_minus_one(ThreadContext context) |
IRubyObject |
op_minus_two(ThreadContext context) |
IRubyObject |
op_minus(ThreadContext context,
double other) |
IRubyObject |
op_minus(ThreadContext context,
IRubyObject other)
fix_minus
|
IRubyObject |
op_minus(ThreadContext context,
long other) |
IRubyObject |
op_mod(ThreadContext context,
IRubyObject other)
fix_mod
|
IRubyObject |
op_mod(ThreadContext context,
long other) |
IRubyObject |
op_mul(ThreadContext context,
double other) |
IRubyObject |
op_mul(ThreadContext context,
IRubyObject other)
fix_mul
|
IRubyObject |
op_mul(ThreadContext context,
long other) |
IRubyObject |
op_neg(ThreadContext context)
fix_rev
|
IRubyObject |
op_or(ThreadContext context,
IRubyObject other)
fix_or
|
IRubyObject |
op_or(ThreadContext context,
long other) |
IRubyObject |
op_plus_one(ThreadContext context) |
IRubyObject |
op_plus_two(ThreadContext context) |
IRubyObject |
op_plus(ThreadContext context,
double other) |
IRubyObject |
op_plus(ThreadContext context,
IRubyObject other)
fix_plus
|
IRubyObject |
op_plus(ThreadContext context,
long other) |
IRubyObject |
op_pow_19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
op_pow(ThreadContext context,
IRubyObject other)
fix_pow
|
IRubyObject |
op_pow(ThreadContext context,
long other) |
IRubyObject |
op_rshift(long width)
Deprecated.
|
IRubyObject |
op_rshift(ThreadContext context,
IRubyObject other)
fix_rshift
|
RubyInteger |
op_rshift(ThreadContext context,
long width) |
IRubyObject |
op_uminus(ThreadContext context)
fix_uminus
|
IRubyObject |
op_xor(ThreadContext context,
IRubyObject other)
fix_xor
|
IRubyObject |
op_xor(ThreadContext context,
long other) |
IRubyObject |
pred(ThreadContext context) |
IRubyObject |
remainder(ThreadContext context,
IRubyObject y)
num_remainder
|
int |
signum() |
IRubyObject |
size(ThreadContext context)
fix_size
|
IRubyObject |
sqrt(ThreadContext context) |
IRubyObject |
succ(ThreadContext context)
int_succ
|
IRubyObject |
taint(ThreadContext context)
rb_obj_taint
call-seq:
obj.taint -> obj
Marks obj as tainted---if the
$SAFE level is
set appropriately, many method calls which might alter the running
programs environment will refuse to accept tainted strings. |
static RubyFixnum |
three(Ruby runtime) |
IRubyObject |
times(ThreadContext context,
Block block) |
IRubyObject |
to_f() |
IRubyObject |
to_f(ThreadContext context)
fix_to_f
|
RubyString |
to_s()
rb_any_to_s
call-seq:
obj.to_s => string
Returns a string representing obj.
|
RubyString |
to_s(IRubyObject arg0) |
RubyString |
to_s(IRubyObject[] args)
fix_to_s
|
IRubyObject |
to_sym()
Deprecated.
|
IRubyObject |
truncate(ThreadContext context,
IRubyObject arg)
rb_fix_truncate
|
static RubyFixnum |
two(Ruby runtime) |
static RubyFixnum |
unmarshalFrom(UnmarshalStream input) |
IRubyObject |
zero_p()
Deprecated.
|
IRubyObject |
zero_p(ThreadContext context)
fix_zero_p
|
static RubyFixnum |
zero(Ruby runtime) |
allbits_p, anybits_p, ceil, ceil, chr, chr, chr19, chr19, convertToInteger, createIntegerClass, digits, div_div, downto, fdiv, floor, floor, floorSqrt, floorSqrt, gcd, gcdlcm, induced_from, int_half_p_half_down, int_half_p_half_even, int_half_p_half_up, int_round_half_down, int_round_half_even, int_round_half_up, integer_p, intPowTmp3, isNegative, isPositive, lcm, nobits_p, op_aref, op_idiv, op_lshift, op_neg, op_rshift, op_uminus, ord, pow, pow, rationalize, round, round, round, round, round, round19, round19, roundShared, size, sqrt, timesSizeFn, to_i, to_r, toFloat, truncate, truncate, uptoabs2, arg, asNumeric, callCoerced, callCoerced, callCoerced, callCoerced, checkInt, checkInt, coerce, coerceBin, coerceBin, coerceBit, coerceBit, coerceBody, coerceCmp, coerceCmp, coerceFailed, coerceRelOp, coerceRelOp, coerceRescue, compareWithZero, conjugate, createNumericClass, dbl_cmp, dbl2ival, dbl2num, div, div19, divmod19, doCoerce, dup, eql_p, finite_p, fix2int, fix2int, fix2long, fixable, float2long, floatStepSize, getCoerced, getRoundingMode, image, infinite_p, initialize_copy, int2fix, intervalStepSize, isReal, modulo19, negativeInt, negFixable, negFixable, newNumeric, num_imaginary, num2chr, num2dbl, num2dbl, num2fix, num2int, num2long, numFuncall, numFuncall, numRemainder, op_cmp, op_not, op_num_equal, op_uplus, polar, posFixable, posFixable, positiveInt, quo_19, quo, rbClone, rbClone, rbClone, rbClone, real_p, real, rect, scalar_p, singleton_method_added, step, str2fnum, str2fnum, str2fnum19, str2inum, str2inum, to_c, to_int, toJavaattachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, eqlInternal, equalInternal, inspect, op_eqq, puts, specificEval, toRubyString, toStringaddFinalizer, anyToString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, ensureInstanceVariablesSettable, eql_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, infectBy, initialize, initialize19, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing, method_missing19, method, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_method, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, tainted_p, testFrozen, testFrozen, to_a, to_a, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderclone, finalize, getClass, notify, notifyAll, wait, wait, waitarraypublic static final long SIGN_BIT
public static final long MAX
public static final long MIN
public static final long MAX_MARSHAL_FIXNUM
public static final long MIN_MARSHAL_FIXNUM
public static final boolean USE_CACHE
public static final int CACHE_OFFSET
public RubyFixnum(Ruby runtime)
public RubyFixnum(Ruby runtime, long value)
public ClassIndex getNativeClassIndex()
RubyObjectgetNativeClassIndex in interface CoreObjectTypegetNativeClassIndex in class RubyObjectClassIndexpublic java.lang.Object constant()
constant in interface ConstantizableConstantizablepublic final boolean eql(IRubyObject other)
eql in interface IRubyObjecteql in class RubyBasicObjectpublic IRubyObject equal_p(ThreadContext context, IRubyObject obj)
RubyBasicObjectequal_p in class RubyBasicObjectpublic boolean isImmediate()
RubyBasicObjectisImmediate in interface IRubyObjectisImmediate in class RubyBasicObjectpublic RubyClass getSingletonClass()
RubyBasicObjectgetSingletonClass in interface IRubyObjectgetSingletonClass in class RubyBasicObjectpublic java.lang.Class<?> getJavaClass()
RubyBasicObjectgetJavaClass in interface IRubyObjectgetJavaClass in class RubyBasicObjectpublic double getDoubleValue()
getDoubleValue in class RubyNumericpublic long getLongValue()
RubyNumericgetLongValue in class RubyNumericpublic int getIntValue()
RubyNumericgetIntValue in class RubyNumericpublic java.math.BigInteger getBigIntegerValue()
getBigIntegerValue in class RubyNumericpublic int signum()
signum in class RubyIntegerpublic RubyInteger negate()
negate in class RubyIntegerpublic static RubyFixnum newFixnum(Ruby runtime, long value)
@Deprecated public final RubyFixnum newFixnum(long newValue)
public static RubyFixnum zero(Ruby runtime)
public static RubyFixnum one(Ruby runtime)
public static RubyFixnum two(Ruby runtime)
public static RubyFixnum three(Ruby runtime)
public static RubyFixnum four(Ruby runtime)
public static RubyFixnum five(Ruby runtime)
public static RubyFixnum minus_one(Ruby runtime)
public RubyFixnum hash()
RubyBasicObjecthash in class RubyBasicObjectpublic final int hashCode()
RubyObjecthashCode in class RubyObjectRubyBasicObject.hashCode()public IRubyObject times(ThreadContext context, Block block)
times in class RubyIntegerpublic IRubyObject ceil(ThreadContext context, IRubyObject arg)
ceil in class RubyIntegerpublic IRubyObject floor(ThreadContext context, IRubyObject arg)
floor in class RubyIntegerpublic IRubyObject truncate(ThreadContext context, IRubyObject arg)
truncate in class RubyIntegerpublic RubyArray digits(ThreadContext context, IRubyObject base)
digits in class RubyIntegerpublic RubyString to_s(IRubyObject[] args)
public RubyString to_s()
RubyBasicObjectto_s prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''to_s in class RubyIntegerpublic RubyString to_s(IRubyObject arg0)
to_s in class RubyInteger@Deprecated public IRubyObject to_sym()
public IRubyObject op_uminus(ThreadContext context)
op_uminus in class RubyIntegerpublic IRubyObject op_plus(ThreadContext context, IRubyObject other)
op_plus in class RubyIntegerpublic IRubyObject op_plus(ThreadContext context, long other)
op_plus in class RubyIntegerpublic IRubyObject op_plus(ThreadContext context, double other)
public IRubyObject op_plus_one(ThreadContext context)
public IRubyObject op_plus_two(ThreadContext context)
public IRubyObject op_minus(ThreadContext context, IRubyObject other)
op_minus in class RubyIntegerpublic IRubyObject op_minus(ThreadContext context, long other)
op_minus in class RubyIntegerpublic IRubyObject op_minus(ThreadContext context, double other)
public IRubyObject op_minus_one(ThreadContext context)
context - public IRubyObject op_minus_two(ThreadContext context)
context - public IRubyObject op_mul(ThreadContext context, IRubyObject other)
op_mul in class RubyIntegerpublic IRubyObject op_mul(ThreadContext context, long other)
op_mul in class RubyIntegerpublic IRubyObject op_mul(ThreadContext context, double other)
public IRubyObject idiv(ThreadContext context, IRubyObject other)
idiv in class RubyIntegerpublic IRubyObject idiv(ThreadContext context, long other)
idiv in class RubyNumericpublic IRubyObject op_div(ThreadContext context, IRubyObject other)
op_div in class RubyIntegerpublic IRubyObject op_div(ThreadContext context, long other)
public RubyBoolean odd_p(ThreadContext context)
odd_p in class RubyIntegerpublic RubyBoolean even_p(ThreadContext context)
even_p in class RubyIntegerpublic IRubyObject pred(ThreadContext context)
pred in class RubyInteger@Deprecated public IRubyObject idiv(ThreadContext context, IRubyObject other, java.lang.String method)
public IRubyObject idiv(ThreadContext context, IRubyObject other, CallSite site)
@Deprecated public IRubyObject idiv(ThreadContext context, long y, java.lang.String method)
public IRubyObject op_mod(ThreadContext context, IRubyObject other)
op_mod in class RubyIntegerpublic IRubyObject op_mod(ThreadContext context, long other)
op_mod in class RubyIntegerpublic IRubyObject modulo(ThreadContext context, IRubyObject other)
RubyNumericmodulo in class RubyNumericpublic IRubyObject divmod(ThreadContext context, IRubyObject other)
divmod in class RubyIntegerpublic IRubyObject op_pow(ThreadContext context, IRubyObject other)
op_pow in class RubyIntegerpublic IRubyObject op_pow(ThreadContext context, long other)
@Deprecated public IRubyObject op_pow_19(ThreadContext context, IRubyObject other)
protected IRubyObject intPowTmp1(ThreadContext context, RubyInteger y, long mm, boolean negaFlg)
@Deprecated protected IRubyObject intPowTmp2(ThreadContext context, IRubyObject y, long mm, boolean negaFlg)
public IRubyObject abs(ThreadContext context)
abs in class RubyIntegerpublic IRubyObject magnitude(ThreadContext context)
magnitude in class RubyIntegerpublic IRubyObject op_equal(ThreadContext context, IRubyObject other)
op_equal in interface IRubyObjectop_equal in class RubyIntegerpublic IRubyObject op_equal(ThreadContext context, long other)
public IRubyObject op_equal(ThreadContext context, double other)
public boolean op_equal_boolean(ThreadContext context, long other)
public final boolean fastEqual(RubyFixnum other)
public boolean equals(java.lang.Object other)
RubyObjectequals in class RubyObjectRubyBasicObject.equals(Object)public final int compareTo(IRubyObject other)
RubyBasicObjectcompareTo in interface java.lang.Comparable<IRubyObject>compareTo in class RubyBasicObjectother - another IRubyObjectpublic IRubyObject op_cmp(ThreadContext context, IRubyObject other)
op_cmp in class RubyIntegerpublic IRubyObject op_cmp(ThreadContext context, long other)
public IRubyObject op_cmp(ThreadContext context, double other)
public IRubyObject op_gt(ThreadContext context, IRubyObject other)
op_gt in class RubyIntegerpublic IRubyObject op_gt(ThreadContext context, long other)
public boolean op_gt_boolean(ThreadContext context, long other)
public IRubyObject op_ge(ThreadContext context, IRubyObject other)
op_ge in class RubyIntegerpublic IRubyObject op_ge(ThreadContext context, long other)
public boolean op_ge_boolean(ThreadContext context, long other)
public IRubyObject op_lt(ThreadContext context, IRubyObject other)
op_lt in class RubyIntegerpublic IRubyObject op_lt(ThreadContext context, long other)
public boolean op_lt_boolean(ThreadContext context, long other)
public IRubyObject op_le(ThreadContext context, IRubyObject other)
op_le in class RubyIntegerpublic IRubyObject op_le(ThreadContext context, long other)
public boolean op_le_boolean(ThreadContext context, long other)
public IRubyObject op_neg(ThreadContext context)
op_neg in class RubyIntegerpublic IRubyObject op_and(ThreadContext context, IRubyObject other)
op_and in class RubyIntegerpublic IRubyObject op_and(ThreadContext context, long other)
public IRubyObject op_or(ThreadContext context, IRubyObject other)
op_or in class RubyIntegerpublic IRubyObject op_or(ThreadContext context, long other)
public IRubyObject op_xor(ThreadContext context, IRubyObject other)
op_xor in class RubyIntegerpublic IRubyObject op_xor(ThreadContext context, long other)
public IRubyObject op_aref(ThreadContext context, IRubyObject other)
op_aref in class RubyIntegerpublic IRubyObject op_lshift(ThreadContext context, IRubyObject other)
op_lshift in class RubyIntegerpublic RubyInteger op_lshift(ThreadContext context, long width)
op_lshift in class RubyInteger@Deprecated public IRubyObject op_lshift(long width)
public IRubyObject op_rshift(ThreadContext context, IRubyObject other)
op_rshift in class RubyIntegerpublic RubyInteger op_rshift(ThreadContext context, long width)
op_rshift in class RubyInteger@Deprecated public IRubyObject op_rshift(long width)
public IRubyObject to_f(ThreadContext context)
to_f in class RubyIntegerpublic IRubyObject to_f()
to_f in class RubyIntegerpublic IRubyObject size(ThreadContext context)
size in class RubyInteger@Deprecated public IRubyObject zero_p()
public IRubyObject zero_p(ThreadContext context)
zero_p in class RubyIntegerpublic final boolean isZero()
isZero in class RubyNumericpublic IRubyObject nonzero_p(ThreadContext context)
RubyNumericnonzero_p in class RubyNumericpublic IRubyObject succ(ThreadContext context)
RubyIntegersucc in class RubyIntegerpublic IRubyObject bit_length(ThreadContext context)
bit_length in class RubyIntegerpublic IRubyObject id()
RubyBasicObjectid in interface IRubyObjectid in class RubyBasicObjectpublic IRubyObject taint(ThreadContext context)
RubyBasicObject$SAFE level is
set appropriately, many method calls which might alter the running
programs environment will refuse to accept tainted strings.taint in class RubyBasicObjectpublic java.lang.String asJavaString()
RubyBasicObjectasJavaString in interface IRubyObjectasJavaString in class RubyBasicObjectpublic static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOExceptionpublic RubyInteger convertToInteger(java.lang.String method)
RubyBasicObjectconvertToInteger in interface IRubyObjectconvertToInteger in class RubyBasicObjectmethod - conversion method to use e.g. "to_i"public IRubyObject fdivDouble(ThreadContext context, IRubyObject y)
fdivDouble in class RubyIntegerpublic IRubyObject isNegative(ThreadContext context)
RubyNumericisNegative in class RubyIntegerpublic IRubyObject isPositive(ThreadContext context)
RubyNumericisPositive in class RubyIntegerprotected boolean int_round_zero_p(ThreadContext context, int ndigits)
int_round_zero_p in class RubyIntegerpublic IRubyObject numerator(ThreadContext context)
RubyNumericnumerator in class RubyIntegerpublic IRubyObject denominator(ThreadContext context)
RubyNumericdenominator in class RubyIntegerpublic RubyRational convertToRational()
convertToRational in class RubyNumericpublic IRubyObject remainder(ThreadContext context, IRubyObject y)
RubyNumericremainder in class RubyIntegerpublic IRubyObject sqrt(ThreadContext context)
sqrt in class RubyInteger@Deprecated public static IRubyObject induced_from(IRubyObject recv, IRubyObject other)
Copyright © 2001-2021 JRuby. All Rights Reserved.