Package | Description |
---|---|
org.jruby | |
org.jruby.embed.internal | |
org.jruby.ext.bigdecimal | |
org.jruby.ext.date | |
org.jruby.ir.operands | |
org.jruby.runtime.builtin | |
org.jruby.util |
Modifier and Type | Class and Description |
---|---|
class |
RubyBignum |
class |
RubyFixnum
Implementation of the Integer (Fixnum internal) class.
|
Modifier and Type | Method and Description |
---|---|
static RubyInteger |
RubyBignum.bignorm(Ruby runtime,
java.math.BigInteger bi)
rb_big_norm
|
RubyInteger |
RubyInteger.convertToInteger() |
RubyInteger |
RubyRational.convertToInteger() |
RubyInteger |
RubyFloat.convertToInteger() |
RubyInteger |
RubyBasicObject.convertToInteger()
Tries to convert this object to a Ruby Integer using the "to_int" method.
|
RubyInteger |
RubyBasicObject.convertToInteger(int methodIndex,
java.lang.String convertMethod)
Deprecated.
|
static RubyInteger |
BasicObjectStub.convertToInteger(IRubyObject self) |
static RubyInteger |
BasicObjectStub.convertToInteger(IRubyObject self,
int convertMethodIndex,
java.lang.String convertMethod) |
static RubyInteger |
BasicObjectStub.convertToInteger(IRubyObject self,
java.lang.String convertMethod) |
RubyInteger |
RubyBasicObject.convertToInteger(java.lang.String convertMethod)
Tries to convert this object to a Ruby Integer using the supplied conversion method.
|
RubyInteger |
RubyFixnum.convertToInteger(java.lang.String method) |
RubyInteger |
RubyObjectAdapter.convertToRubyInteger(IRubyObject obj) |
static RubyInteger |
RubyNumeric.dbl2ival(Ruby runtime,
double val)
MRI: macro DBL2IVAL
|
RubyInteger |
RubyRational.getDenominator() |
RubyInteger |
RubyRational.getNumerator() |
RubyInteger |
RubyTime.gmt_offset() |
RubyInteger |
RubyTime.hour() |
RubyInteger |
RubyTime.mday() |
RubyInteger |
RubyTime.min() |
RubyInteger |
RubyTime.month() |
RubyInteger |
RubyInteger.negate() |
RubyInteger |
RubyBignum.negate() |
RubyInteger |
RubyFixnum.negate() |
static RubyInteger |
RubyBignum.newBignorm(Ruby runtime,
double value)
Return a Bignum or Fixnum (Integer) for the given value, or raise FloatDomainError if it is out of range.
|
RubyInteger |
RubyTime.nsec()
Get the fractional part of time in nanoseconds.
|
RubyInteger |
RubyInteger.op_lshift(ThreadContext context,
long other) |
RubyInteger |
RubyBignum.op_lshift(ThreadContext context,
long shift) |
RubyInteger |
RubyFixnum.op_lshift(ThreadContext context,
long width) |
RubyInteger |
RubyInteger.op_rshift(ThreadContext context,
long other) |
RubyInteger |
RubyBignum.op_rshift(ThreadContext context,
long shift) |
RubyInteger |
RubyFixnum.op_rshift(ThreadContext context,
long width) |
static RubyInteger |
RubyRandom.randLimited(ThreadContext context,
java.math.BigInteger limit) |
static RubyInteger |
RubyRandom.randLimited(ThreadContext context,
long limit) |
RubyInteger |
RubyTime.sec() |
static RubyInteger |
RubyNumeric.str2inum(Ruby runtime,
RubyString str,
int base) |
static RubyInteger |
RubyNumeric.str2inum(Ruby runtime,
RubyString str,
int base,
boolean strict)
Converts a string representation of an integer to the integer value.
|
RubyInteger |
RubyDir.tell()
Returns the current position in the directory.
|
RubyInteger |
RubyTime.to_i() |
RubyInteger |
RubyTime.usec()
Get the microsecond part of this time value.
|
RubyInteger |
RubyTime.wday() |
RubyInteger |
RubyTime.yday() |
RubyInteger |
RubyTime.year() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
RubyInteger.int_half_p_half_down(ThreadContext context,
RubyInteger num,
RubyNumeric n,
IRubyObject f) |
protected static boolean |
RubyInteger.int_half_p_half_even(ThreadContext context,
RubyInteger num,
RubyNumeric n,
IRubyObject f) |
protected static boolean |
RubyInteger.int_half_p_half_up(ThreadContext context,
RubyInteger num,
RubyNumeric n,
IRubyObject f) |
protected IRubyObject |
RubyFixnum.intPowTmp1(ThreadContext context,
RubyInteger y,
long mm,
boolean negaFlg) |
protected IRubyObject |
RubyInteger.intPowTmp3(ThreadContext context,
RubyInteger y,
RubyBignum m,
boolean negaFlg) |
static RubyNumeric |
RubyRational.newInstance(ThreadContext context,
RubyInteger num) |
static RubyNumeric |
RubyRational.newInstance(ThreadContext context,
RubyInteger num,
RubyInteger den) |
static IRubyObject |
RubyRational.newRationalCanonicalize(ThreadContext context,
RubyInteger x,
RubyInteger y)
rb_rational_new
|
RubyNumeric |
RubyRational.op_div(ThreadContext context,
RubyInteger other) |
IRubyObject |
RubyRational.op_equal(ThreadContext context,
RubyInteger other) |
IRubyObject |
RubyRational.op_mul(ThreadContext context,
RubyInteger other) |
Modifier and Type | Method and Description |
---|---|
RubyInteger |
EmbedRubyObjectAdapterImpl.convertToRubyInteger(IRubyObject obj) |
Modifier and Type | Method and Description |
---|---|
RubyInteger |
RubyBigDecimal.convertToInteger() |
Modifier and Type | Method and Description |
---|---|
RubyNumeric |
RubyBigDecimal.multiplyWith(ThreadContext context,
RubyInteger value) |
Modifier and Type | Method and Description |
---|---|
static RubyInteger |
RubyDate._comp_year69(ThreadContext context,
IRubyObject self,
IRubyObject year) |
static RubyInteger |
RubyDate._i(ThreadContext context,
IRubyObject self,
IRubyObject val) |
RubyInteger |
RubyDate.cwday(ThreadContext context) |
RubyInteger |
RubyDate.cweek(ThreadContext context) |
RubyInteger |
RubyDate.cwyear(ThreadContext context) |
RubyInteger |
RubyDate.hour(ThreadContext context) |
RubyInteger |
RubyDate.mday(ThreadContext context) |
RubyInteger |
RubyDate.minute(ThreadContext context) |
RubyInteger |
RubyDate.mon(ThreadContext context) |
RubyInteger |
RubyDate.second(ThreadContext context) |
RubyInteger |
RubyDate.wday(ThreadContext context) |
RubyInteger |
RubyDate.yday(ThreadContext context) |
RubyInteger |
RubyDate.year(ThreadContext context) |
Modifier and Type | Method and Description |
---|---|
RubyInteger |
UndefinedValue.convertToInteger() |
RubyInteger |
UndefinedValue.convertToInteger(int convertMethodIndex,
java.lang.String convertMethod)
Deprecated.
|
RubyInteger |
UndefinedValue.convertToInteger(java.lang.String convertMethod) |
Modifier and Type | Method and Description |
---|---|
RubyInteger |
IRubyObject.convertToInteger()
Converts this Ruby object to an Integer.
|
default RubyInteger |
IRubyObject.convertToInteger(int convertMethodIndex,
java.lang.String convertMethod)
Deprecated.
|
RubyInteger |
IRubyObject.convertToInteger(java.lang.String convertMethod)
Converts this Ruby object to an Integer.
|
Modifier and Type | Method and Description |
---|---|
RubyInteger |
ConvertBytes.byteListToInum() |
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
rb_cstr_to_inum
|
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int off,
int end,
int base,
boolean badcheck) |
static RubyInteger |
ConvertBytes.byteListToInum19(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
Deprecated.
|
static RubyInteger |
Numeric.f_abs(ThreadContext context,
RubyInteger x) |
static RubyInteger |
Numeric.f_add(ThreadContext context,
RubyInteger x,
RubyInteger y) |
static RubyInteger |
Numeric.f_gcd(ThreadContext context,
RubyInteger x,
RubyInteger y) |
static RubyInteger |
Numeric.f_idiv(ThreadContext context,
RubyInteger x,
RubyInteger y) |
static RubyInteger |
Numeric.f_mul(ThreadContext context,
RubyInteger x,
RubyInteger y) |
static RubyInteger |
Numeric.f_negate(ThreadContext context,
RubyInteger x) |
static RubyInteger |
Numeric.f_sub(ThreadContext context,
RubyInteger x,
RubyInteger y) |
Copyright © 2001-2021 JRuby. All Rights Reserved.