org.jruby.javasupport
Class JavaArray

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.javasupport.JavaObject
          extended by org.jruby.javasupport.JavaArray
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class JavaArray
extends JavaObject


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
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
JavaArray(Ruby runtime, java.lang.Object array)
           
 
Method Summary
 IRubyObject afill(IRubyObject beginIndex, IRubyObject endIndex, IRubyObject value)
           
 IRubyObject aref(IRubyObject index)
           
 IRubyObject aset(IRubyObject index, IRubyObject value)
           
static RubyClass createJavaArrayClass(Ruby runtime, RubyModule javaModule)
           
 RubyFixnum length()
           
 
Methods inherited from class org.jruby.javasupport.JavaObject
createJavaObjectClass, equal, getJavaClass, getValue, hash, is_java_proxy, java_class, java_type, registerRubyMethods, ruby_synchronized, same, to_s, wrap
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaArray

public JavaArray(Ruby runtime,
                 java.lang.Object array)
Method Detail

createJavaArrayClass

public static RubyClass createJavaArrayClass(Ruby runtime,
                                             RubyModule javaModule)

length

public RubyFixnum length()
Overrides:
length in class JavaObject

aref

public IRubyObject aref(IRubyObject index)
Overrides:
aref in class JavaObject

aset

public IRubyObject aset(IRubyObject index,
                        IRubyObject value)
Overrides:
aset in class JavaObject

afill

public IRubyObject afill(IRubyObject beginIndex,
                         IRubyObject endIndex,
                         IRubyObject value)
Overrides:
afill in class JavaObject


Copyright © 2002-2007 JRuby Team. All Rights Reserved.