Deprecated
since 9.4
java.lang.Object.new as usual, without the manual
JavaObject.wrap java_object.
| Modifier and Type | Field and Description |
|---|---|
| private static final ObjectAllocator | |
| private static final Object | |
| private final VariableAccessor |
| Access | Constructor and Description |
|---|---|
| protected | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RubyClass | |
| public final Object | dataGetStruct()
Overrides org. Implements org. Our version of Data_Get_Struct. |
| public final void | dataWrapStruct(Object
the object to wrap object)Overrides org. Implements org. Our version of Data_Wrap_Struct. |
| public boolean | equals(final Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public IRubyObject | |
| public IRubyObject | |
| public final Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public final Object | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | |
| public IRubyObject | |
| public JavaClass | |
| public RubyString | |
| public RubyString | |
| public RubyFixnum | |
| public RubyFixnum | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public static RubyBoolean | |
| public final IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public static JavaObject | |
| public static IRubyObject |
| JAVA_OBJECT_ALLOCATOR | back to summary |
|---|---|
| private static final ObjectAllocator JAVA_OBJECT_ALLOCATOR | |
| NULL_LOCK | back to summary |
|---|---|
| private static final Object NULL_LOCK | |
| objectAccessor | back to summary |
|---|---|
| private final VariableAccessor objectAccessor | |
| JavaObject | back to summary |
|---|---|
| protected JavaObject(Ruby runtime, RubyClass rubyClass, Object value) | |
| JavaObject | back to summary |
|---|---|
| private JavaObject(Ruby runtime, RubyClass klazz) | |
| createJavaObjectClass | back to summary |
|---|---|
| public static RubyClass createJavaObjectClass(Ruby runtime, RubyClass Object, RubyModule javaModule) | |
| dataGetStruct | back to summary |
|---|---|
| public final Object dataGetStruct() Overrides org. Implements org. Doc from org. Our version of Data_Get_Struct. Returns a wrapped data value if there is one, otherwise returns null. | |
| dataWrapStruct | back to summary |
|---|---|
| public final void dataWrapStruct(Object object) Overrides org. Implements org. Doc from org. Our version of Data_Wrap_Struct. This method will just set a private pointer to the object provided. This pointer is transient and will not be accessible from Ruby. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides org. Doc from org. This override does not do a "checked" dispatch.
| |
| get_java_class | back to summary |
|---|---|
| public IRubyObject get_java_class()
Deprecated since 10.0.
| |
| get_java_class | back to summary |
|---|---|
public IRubyObject get_java_class(ThreadContext context)
| |
| getJavaClass | back to summary |
|---|---|
| public final Class Overrides org. Implements org. Doc from org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. | |
| getValue | back to summary |
|---|---|
| public final Object getValue() | |
| hash | back to summary |
|---|---|
| public RubyFixnum hash(ThreadContext context) Overrides org. Doc from org. Will return the hash code of this object. In comparison to MRI, this method will use the Java identity hash code instead of using rb_obj_id, since the usage of id in JRuby will incur the cost of some. ObjectSpace maintenance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. This override does not do "checked" dispatch since Object usually has #hash defined.
| |
| is_java_proxy | back to summary |
|---|---|
| public IRubyObject is_java_proxy()
Deprecated since 10.0.
| |
| is_java_proxy | back to summary |
|---|---|
public IRubyObject is_java_proxy(ThreadContext context)
| |
| java_class | back to summary |
|---|---|
| public JavaClass java_class()
Deprecated since 9.4-.
| |
| java_type | back to summary |
|---|---|
| public RubyString java_type()
Deprecated since 10.0.
| |
| java_type | back to summary |
|---|---|
public RubyString java_type(ThreadContext context)
| |
| length | back to summary |
|---|---|
| public RubyFixnum length()
Deprecated since 10.0.
| |
| length | back to summary |
|---|---|
public RubyFixnum length(ThreadContext context)
| |
| marshal_dump | back to summary |
|---|---|
public IRubyObject marshal_dump(ThreadContext context)
| |
| marshal_load | back to summary |
|---|---|
public IRubyObject marshal_load(ThreadContext context, IRubyObject str)
| |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(final IRubyObject other)
Deprecated since 10.0.
| |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(ThreadContext context, IRubyObject other) Overrides org. Implements org. Doc from org. rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems
| |
| op_equal | back to summary |
|---|---|
| public static RubyBoolean op_equal(JavaProxy self, IRubyObject other)
Deprecated since 10.0.
| |
| ruby_synchronized | back to summary |
|---|---|
public final IRubyObject ruby_synchronized(ThreadContext context, Block block)
| |
| ruby_synchronized | back to summary |
|---|---|
| public static IRubyObject ruby_synchronized(ThreadContext context, final Object lock, Block block) | |
| same | back to summary |
|---|---|
public IRubyObject same(ThreadContext context, final IRubyObject other)
| |
| same | back to summary |
|---|---|
| public IRubyObject same(final IRubyObject other)
Deprecated
| |
| to_s | back to summary |
|---|---|
| public IRubyObject to_s(ThreadContext context) Overrides org.
| |
| to_s | back to summary |
|---|---|
| public static IRubyObject to_s(Ruby runtime, Object dataStruct)
Deprecated since 10.0.
| |
| toJava | back to summary |
|---|---|
| public <T> T toJava(Class<T> target) Overrides org. Implements org. Doc from org. Convert the object to the specified Java class, if possible.
| |
| wrap | back to summary |
|---|---|
| public static JavaObject wrap(final Ruby runtime, final Object value)
Deprecated since 9.4-.
| |
| wrap | back to summary |
|---|---|
public static IRubyObject wrap(final ThreadContext context, final IRubyObject self, final IRubyObject object)
| |