|
||||||||||
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, RubyObject.ObjectMethods, RubyObject.VariableTableEntry |
Field Summary |
---|
Fields inherited from class org.jruby.RubyNumeric |
---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
Fields inherited from class org.jruby.RubyObject |
---|
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, OBJECT_ALLOCATOR, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyInteger(Ruby runtime,
RubyClass rubyClass)
|
|
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace)
|
Method Summary | |
---|---|
RubyString |
chr()
int_chr |
RubyInteger |
convertToInteger()
Tries to convert this object to a Ruby Integer using the "to_int" method. |
static RubyClass |
createIntegerClass(Ruby runtime)
|
IRubyObject |
downto(ThreadContext context,
IRubyObject to,
Block block)
int_downto |
static RubyBoolean |
even_p(ThreadContext context,
IRubyObject recv)
|
static IRubyObject |
induced_from(ThreadContext context,
IRubyObject recv,
IRubyObject other)
rb_int_induced_from |
IRubyObject |
integer_p()
int_int_p |
static RubyBoolean |
odd_p(ThreadContext context,
IRubyObject recv)
|
static IRubyObject |
pred(ThreadContext context,
IRubyObject recv)
|
IRubyObject |
succ(ThreadContext context)
int_succ |
IRubyObject |
times(ThreadContext context,
Block block)
|
RubyInteger |
to_i()
int_to_i |
protected RubyFloat |
toFloat()
|
IRubyObject |
upto(ThreadContext context,
IRubyObject to,
Block block)
int_upto |
Methods inherited from class org.jruby.RubyNumeric |
---|
abs, asNumeric, callCoerced, callCoerced, ceil, checkInt, coerce, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, div, divmod, doCoerce, eql_p, fix2int, fix2long, floor, getCoerced, getDoubleValue, getLongValue, initialize_copy, int2fix, modulo, newNumeric, nonzero_p, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, quo, remainder, round, sadded, step, step, step, str2fnum, str2fnum, str2inum, str2inum, to_int, truncate, 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)
public RubyInteger(Ruby runtime, RubyClass rubyClass, boolean useObjectSpace)
Method Detail |
---|
public static RubyClass createIntegerClass(Ruby runtime)
public RubyInteger convertToInteger()
RubyObject
convertToInteger
in interface IRubyObject
convertToInteger
in class RubyObject
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()
public RubyInteger to_i()
public static RubyBoolean odd_p(ThreadContext context, IRubyObject recv)
public static RubyBoolean even_p(ThreadContext context, IRubyObject recv)
public static IRubyObject pred(ThreadContext context, IRubyObject recv)
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 |