Top Inners Fields Constructors Methods
org.jruby.java.proxies

public Class ConcreteJavaProxy

extends JavaProxy
Class Inheritance
Known Direct Subclasses
org.jruby.java.proxies.MapJavaProxy
Static Imports
org.jruby.api.Define.defineClass, .Error.typeError, org.jruby.runtime.Visibility.PUBLIC

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
public static class
public static class
ConcreteJavaProxy.SplitCtorData

Used by reified classes, this class is tightly coupled with RealClassGenerator, splitInitialize, & finishInitialize Do not refactor without looking at RCG

public static class
ConcreteJavaProxy.StaticJCreateMethod

Manually added as an override of `new` for Concrete Extension

Field Summary

Inherited from org.jruby.java.proxies.JavaProxy:
object

Constructor Summary

AccessConstructor and Description
public
public
ConcreteJavaProxy(Ruby runtime, RubyClass klazz, Object object)

Method Summary

Modifier and TypeMethod and Description
public static RubyClass
public void
public static int
findSuperLine(Ruby runtime, DynamicMethod dm, int start)

public void
finishInitialize(ConcreteJavaProxy.SplitCtorData returned)

Used by reified classes, this method is tightly coupled with RealClassGenerator, splitInitialize Do not refactor without looking at RCG

Note

invoked from generated byte-code

public IRubyObject

Returns:

The identity hashcode for the Java object.
id
()

Overrides org.jruby.RubyBasicObject.id.

Implements org.jruby.runtime.builtin.IRubyObject.id.

Because we can't physically associate an ID with a Java object, we can only use the identity hashcode here.

protected static void
initialize(final RubyClass concreteJavaProxy)
Deprecated since 10.0.

protected static void
initialize(ThreadContext context, final RubyClass concreteJavaProxy)

private static boolean
isClassOrIncludedPrependedModule(final RubyModule methodSource, final RubyClass klass)

public ConcreteJavaProxy.SplitCtorData

Returns:

An object used by reified code and the finishInitialize method
splitInitialized
(RubyClass base, IRubyObject[] args, Block block, Java.JCtorCache jcc)

Used by reified classes, this method is tightly coupled with RealClassGenerator, finishInitialize Do not refactor without looking at RCG

public <T> T
toJava(Class<T>
The target type to which the object should be converted.
type
)

Overrides org.jruby.java.proxies.JavaProxy.toJava.

Implements org.jruby.runtime.builtin.IRubyObject.toJava.

Convert the object to the specified Java class, if possible.

Inherited from org.jruby.java.proxies.JavaProxy:
asJavaObjectcheckVariablesOnProxycloneObjectcreateJavaProxydataGetStructdataWrapStructequal_pfield_accessorfield_readerfield_writergetJavaClassgetJavaClassgetObjectgetVariableinheritedinitialize_copyinspectHashCodeinstallFieldjava_classjava_methodjava_methodjava_sendjava_sendjava_sendjava_sendmarshal_dumpmarshal_dumpmarshal_loadnew_arrayop_arefpersistentpersistentsetJavaClasssetJavaClasssetJavaClasssetJavaClasssetObjectsetVariablesingleton_classsingleton_classsingletonClassunwrapwrap