|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyInteger
public abstract class RubyInteger
Implementation of the Integer class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyNumeric |
---|
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeException |
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Data |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyNumeric |
---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyInteger(RubyClass rubyClass)
|
|
RubyInteger(Ruby runtime,
RubyClass rubyClass)
|
|
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace)
|
|
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace,
boolean canBeTainted)
|
Methods inherited from class org.jruby.RubyNumeric |
---|
abs, abs2, arg, asNumeric, callCoerced, callCoerced, ceil, checkInt, coerce, coerceBin, coerceBody, coerceCmp, coerceRelOp, conjugate, createNumericClass, dbl_cmp, dbl2num, div, div19, divmod, divmod19, doCoerce, eql_p, fdiv, fix2int, fix2int, fix2long, floatStep, floor, getBigIntegerValue, getCoerced, getDoubleValue, getLongValue, image, initialize_copy, int2fix, magnitude, modulo, modulo19, newNumeric, nonzero_p, num_imaginary, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, polar, quo_19, quo, real, rect, remainder, sadded, scalar_p, step, step, str2fnum, str2fnum, str2fnum19, str2inum, str2inum, to_c, to_int, toJava, truncate, zero_p |
Methods inherited from class org.jruby.RubyObject |
---|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, equals, getNativeTypeIndex, hashCode, initialize, op_eqq, puts, specificEval, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RubyInteger(Ruby runtime, RubyClass rubyClass)
public RubyInteger(RubyClass rubyClass)
public RubyInteger(Ruby runtime, RubyClass rubyClass, boolean useObjectSpace)
public RubyInteger(Ruby runtime, RubyClass rubyClass, boolean useObjectSpace, boolean canBeTainted)
Method Detail |
---|
public static RubyClass createIntegerClass(Ruby runtime)
public RubyInteger convertToInteger()
RubyBasicObject
convertToInteger
in interface IRubyObject
convertToInteger
in class RubyBasicObject
protected RubyFloat toFloat()
public IRubyObject integer_p()
integer_p
in class RubyNumeric
public IRubyObject upto(ThreadContext context, IRubyObject to, Block block)
public IRubyObject downto(ThreadContext context, IRubyObject to, Block block)
public IRubyObject times(ThreadContext context, Block block)
public IRubyObject succ(ThreadContext context)
public RubyString chr(ThreadContext context)
public RubyString chr19(ThreadContext context)
public RubyString chr19(ThreadContext context, IRubyObject arg)
public IRubyObject ord(ThreadContext context)
public IRubyObject to_i()
public IRubyObject round()
RubyNumeric
round
in class RubyNumeric
public IRubyObject round19()
public IRubyObject round19(ThreadContext context, IRubyObject arg)
public IRubyObject to_r(ThreadContext context)
public IRubyObject rationalize(ThreadContext context, IRubyObject[] args)
public RubyBoolean odd_p(ThreadContext context)
public RubyBoolean even_p(ThreadContext context)
public IRubyObject pred(ThreadContext context)
public IRubyObject gcd(ThreadContext context, IRubyObject other)
public IRubyObject lcm(ThreadContext context, IRubyObject other)
public IRubyObject gcdlcm(ThreadContext context, IRubyObject other)
public IRubyObject numerator(ThreadContext context)
RubyNumeric
numerator
in class RubyNumeric
public IRubyObject denominator(ThreadContext context)
RubyNumeric
denominator
in class RubyNumeric
public static IRubyObject induced_from(ThreadContext context, IRubyObject recv, IRubyObject other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |