Top Description Fields Constructors Methods
org.jruby.javasupport

public Class JavaArray

extends JavaObject
Class Inheritance
Annotations
@Deprecated
Imports
java.lang.reflect.Array, org.jruby.Ruby, .RubyBasicObject, .RubyFixnum, org.jruby.api.Convert, org.jruby.java.util.ArrayUtils, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Deprecated

since 9.4

Java::JavaArray wrapping is no longer used with JRuby. The (automatic) Java proxy wrapping has been the preferred method for a while and works with arrays, use java.lang.Object[2].new as usual.

Field Summary

Modifier and TypeField and Description
private final JavaUtil.JavaConverter

Constructor Summary

AccessConstructor and Description
public
JavaArray(Ruby runtime, Object array)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
afill(IRubyObject beginArg, IRubyObject endArg, IRubyObject value)
Deprecated since 10.0.

public IRubyObject
arefDirect(Ruby runtime, int intIndex)
Deprecated since 10.0.

public IRubyObject
aset(IRubyObject indexArg, IRubyObject value)
Deprecated since 10.0.

public IRubyObject
asetDirect(Ruby runtime, int intIndex, IRubyObject value)

public boolean
equals(Object
object to compare
other
)

Overrides org.jruby.javasupport.JavaObject.equals.

This override does not do a "checked" dispatch.

public final void
fillWithExceptionHandling(ThreadContext context, int start, int end, Object javaValue)
Deprecated since 10.0.

public Class<T>
public int
public int
hashCode()

Overrides org.jruby.javasupport.JavaObject.hashCode.

This override does not do "checked" dispatch since Object usually has #hash defined.

public RubyFixnum
length()

Overrides org.jruby.javasupport.JavaObject.length.

Deprecated since 10.0.

public void
setWithExceptionHandling(ThreadContext context, int intIndex, Object javaObject)
Deprecated since 10.0.

Inherited from org.jruby.javasupport.JavaObject:
createJavaObjectClassdataGetStructdataWrapStructget_java_classget_java_classgetJavaClassgetValuehashis_java_proxyis_java_proxyjava_classjava_typejava_typelengthmarshal_dumpmarshal_loadop_equalop_equalop_equalruby_synchronizedruby_synchronizedsamesameto_sto_stoJavawrapwrap

Field Detail

javaConverterback to summary
private final JavaUtil.JavaConverter javaConverter

Constructor Detail

JavaArrayback to summary
public JavaArray(Ruby runtime, Object array)

Method Detail

afillback to summary
public IRubyObject afill(IRubyObject beginArg, IRubyObject endArg, IRubyObject value)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
arefDirectback to summary
public IRubyObject arefDirect(Ruby runtime, int intIndex)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
asetback to summary
public IRubyObject aset(IRubyObject indexArg, IRubyObject value)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
asetDirectback to summary
public IRubyObject asetDirect(Ruby runtime, int intIndex, IRubyObject value)
equalsback to summary
public boolean equals(Object other)

Overrides org.jruby.javasupport.JavaObject.equals.

Doc from org.jruby.RubyObject.equals.

This override does not do a "checked" dispatch.

Parameters
other:Object

Doc from org.jruby.RubyBasicObject.equals.

object to compare

Returns:boolean

Doc from org.jruby.RubyBasicObject.equals.

true if equals

Annotations
@Override
fillWithExceptionHandlingback to summary
public final void fillWithExceptionHandling(ThreadContext context, int start, int end, Object javaValue)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getComponentTypeback to summary
public Class<T> getComponentType()
getLengthback to summary
public int getLength()
hashCodeback to summary
public int hashCode()

Overrides org.jruby.javasupport.JavaObject.hashCode.

Doc from org.jruby.RubyObject.hashCode.

This override does not do "checked" dispatch since Object usually has #hash defined.

Returns:int

the hash code

Annotations
@Override
lengthback to summary
public RubyFixnum length()

Overrides org.jruby.javasupport.JavaObject.length.

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
setWithExceptionHandlingback to summary
public void setWithExceptionHandling(ThreadContext context, int intIndex, Object javaObject)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0