|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyNumeric |
---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
Fields inherited from class org.jruby.RubyObject |
---|
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyInteger(Ruby runtime,
RubyClass rubyClass)
|
Method Summary | |
---|---|
RubyString |
chr()
int_chr |
RubyInteger |
convertToInteger()
|
static RubyClass |
createIntegerClass(Ruby runtime)
|
IRubyObject |
downto(IRubyObject to,
Block block)
int_downto |
static IRubyObject |
induced_from(IRubyObject recv,
IRubyObject other)
rb_int_induced_from |
IRubyObject |
int_p()
int_int_p |
IRubyObject |
succ()
int_succ |
IRubyObject |
times(Block block)
|
RubyInteger |
to_i()
int_to_i |
protected RubyFloat |
toFloat()
|
IRubyObject |
upto(IRubyObject to,
Block block)
int_upto |
Methods inherited from class org.jruby.RubyNumeric |
---|
abs, asNumeric, callCoerced, callCoerced, ceil, checkInt, cmp, coerce, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, div, divmod, doCoerce, eql_p, equal, fix2int, fix2long, floor, getCoerced, getDoubleValue, getLongValue, init_copy, int2fix, modulo, newNumeric, nonzero_p, num2dbl, num2fix, num2int, num2long, quo, remainder, round, sadded, step, str2fnum, str2fnum, str2inum, str2inum, to_int, truncate, uminus, uplus, zero_p |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RubyInteger(Ruby runtime, RubyClass rubyClass)
Method Detail |
---|
public static RubyClass createIntegerClass(Ruby runtime)
public RubyInteger convertToInteger()
convertToInteger
in interface IRubyObject
convertToInteger
in class RubyObject
protected RubyFloat toFloat()
public IRubyObject int_p()
int_p
in class RubyNumeric
public IRubyObject upto(IRubyObject to, Block block)
public IRubyObject downto(IRubyObject to, Block block)
public IRubyObject times(Block block)
public IRubyObject succ()
public RubyString chr()
public RubyInteger to_i()
public static IRubyObject induced_from(IRubyObject recv, IRubyObject other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |