org.jruby
Class RubyInteger

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyNumeric
          extended byorg.jruby.RubyInteger
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Direct Known Subclasses:
RubyBignum, RubyFixnum

public abstract class RubyInteger
extends RubyNumeric

Implementation of the Integer class.

Version:
$Revision: 1.7 $
Author:
jpetersen

Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyInteger(Ruby ruby, RubyClass rubyClass)
           
 
Method Summary
 RubyString chr()
           
static RubyClass createIntegerClass(Ruby ruby)
           
 IRubyObject downto(RubyNumeric to)
           
static RubyInteger induced_from(IRubyObject recv, IRubyObject number)
           
 RubyBoolean int_p()
          num_int_p
 RubyNumeric multiplyWith(RubyBignum value)
           
 IRubyObject next()
           
 IRubyObject step(RubyNumeric to, RubyNumeric step)
           
 IRubyObject times()
           
 RubyInteger to_i()
           
protected  RubyFloat toFloat()
           
 IRubyObject upto(RubyNumeric to)
           
 
Methods inherited from class org.jruby.RubyNumeric
abs, ceil, cmp, coerce, compareValue, createNumericClass, divmod, eql, equal, fix2int, fix2long, floor, getCoerce, getDoubleValue, getLongValue, getTruncatedLongValue, modulo, multiplyWith, multiplyWith, multiplyWith, nonzero_p, num2long, numericValue, op_uminus, op_uplus, rbClone, remainder, round, str2fnum, str2inum, truncate, veryEqual, zero_p
 
Methods inherited from class org.jruby.RubyObject
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, inspect, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, marshalTo, method_missing, method, methods, nilObject, private_methods, protected_methods, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, to_s, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyInteger

public RubyInteger(Ruby ruby,
                   RubyClass rubyClass)
Method Detail

createIntegerClass

public static RubyClass createIntegerClass(Ruby ruby)

toFloat

protected RubyFloat toFloat()

induced_from

public static RubyInteger induced_from(IRubyObject recv,
                                       IRubyObject number)

chr

public RubyString chr()

downto

public IRubyObject downto(RubyNumeric to)

int_p

public RubyBoolean int_p()
Description copied from class: RubyNumeric
num_int_p

Overrides:
int_p in class RubyNumeric

step

public IRubyObject step(RubyNumeric to,
                        RubyNumeric step)

times

public IRubyObject times()

next

public IRubyObject next()

upto

public IRubyObject upto(RubyNumeric to)

to_i

public RubyInteger to_i()

multiplyWith

public RubyNumeric multiplyWith(RubyBignum value)
Specified by:
multiplyWith in class RubyNumeric


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.