Java::byte[50].new
The [50] call produces an instance of ArrayJavaProxyCreator. The [] method can
be called with any number of integer arguments to create a multi-dimensional
array creator, or calls to [] can be chained for the same effect. The eventual
call to new is against the ArrayJavaProxyCreator instance, and the result is
a wrapped Java array of the specified dimensions and element type of the original
receiver (the byte class, above).
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv final Class | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static RubyClass | |
| public final ArrayJavaProxy | |
| public final IRubyObject |
| dimensions | back to summary |
|---|---|
| pack-priv int[] dimensions | |
| elementType | back to summary |
|---|---|
| pack-priv final Class<?> elementType | |
| EMPTY | back to summary |
|---|---|
| private static final int[] EMPTY | |
| ArrayJavaProxyCreator | back to summary |
|---|---|
| pack-priv ArrayJavaProxyCreator(final ThreadContext context, Class<?> elementType, final IRubyObject[] sizes) | |
| ArrayJavaProxyCreator | back to summary |
|---|---|
| private ArrayJavaProxyCreator(final Ruby runtime, Class<?> elementType) | |
| aggregateDimensions | back to summary |
|---|---|
| private void aggregateDimensions(ThreadContext context, final IRubyObject[] sizes) | |
| createArrayJavaProxyCreator | back to summary |
|---|---|
| public static RubyClass createArrayJavaProxyCreator(ThreadContext context, RubyClass Object) | |
| new_instance | back to summary |
|---|---|
public final ArrayJavaProxy new_instance(ThreadContext context)
| |
| op_aref | back to summary |
|---|---|
public final IRubyObject op_aref(ThreadContext context, IRubyObject[] sizes)
| |