org.jruby.javasupport
Class JavaArray

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

public class JavaArray
extends JavaObject


Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
JavaArray(Ruby runtime, java.lang.Object array)
           
 
Method Summary
 IRubyObject aref(IRubyObject index)
           
 IRubyObject aset(IRubyObject index, IRubyObject value)
           
static RubyClass createJavaArrayClass(Ruby runtime)
           
 RubyFixnum length()
           
 
Methods inherited from class org.jruby.javasupport.JavaObject
createJavaObjectClass, equal, getJavaClass, getValue, hash, java_class, java_type, to_s, wrap
 
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, getMetaClass, getRuntime, getSingletonClass, getType, 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, rbClone, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, toString, 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)

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


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.