java.lang.reflect.Proxy
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private transient JavaProxyConstructor[] | |
| private static final HashSet | |
| private static final ThreadLocal | lookup
These objects are to allow static initializers in reified code. |
| private final HashMap | |
| private final ArrayList | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public final RubyArray | |
| public final RubyArray | |
| public static RubyClass | |
| public static void | |
| public static void | |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public static String | Returns: a unique stub method name for the given proxy class and super methodthe proxy class name className, String the super method name superName)Generate a "super" stub for the given proxy class name and super method name. |
| public static RubyObject | |
| public static RubyObject | |
| public JavaProxyConstructor | |
| public JavaProxyConstructor[] | |
| public JavaProxyConstructor[] | |
| public Class | |
| 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 JavaProxyMethod | |
| public JavaProxyMethod[] | |
| public static JavaProxyClass | |
| public static JavaProxyClass | |
| public static Object[] | |
| public Class | |
| public Object | |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public void | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public final String | |
| private static Class | |
| public static JavaProxyClass | setProxyClassReified(ThreadContext context, final RubyClass clazz, final Class<? extends ReifiedJavaProxy> reified, final boolean allocator)
|
| public IRubyObject | |
| public IRubyObject |
| constructors | back to summary |
|---|---|
| private transient JavaProxyConstructor[] constructors | |
| EXCLUDE_MODULES | back to summary |
|---|---|
| private static final HashSet<String> EXCLUDE_MODULES | |
| lookup | back to summary |
|---|---|
| private static final ThreadLocal<Object[]> lookup These objects are to allow static initializers in reified code. See RubyClass.BaseReifier for details | |
| methodMap | back to summary |
|---|---|
| private final HashMap<String, ArrayList<JavaProxyMethod>> methodMap | |
| methods | back to summary |
|---|---|
| private final ArrayList<JavaProxyMethod> methods | |
| proxyClass | back to summary |
|---|---|
| private final Class<T> proxyClass | |
| JavaProxyClass | back to summary |
|---|---|
| private JavaProxyClass(ThreadContext context, final Class<?> proxyClass) | |
| addStaticInitLookup | back to summary |
|---|---|
| public static int addStaticInitLookup(Object... objects) | |
| constructors | back to summary |
|---|---|
| public final RubyArray Deprecated since 10.0.
| |
| constructors | back to summary |
|---|---|
public final RubyArray
| |
| createJavaProxyClassClass | back to summary |
|---|---|
| public static RubyClass createJavaProxyClassClass(ThreadContext context, RubyClass Object, final RubyModule Java) | |
| createJavaProxyClasses | back to summary |
|---|---|
| public static void createJavaProxyClasses(ThreadContext context, final RubyModule Java, RubyClass Object) | |
| ensureStaticIntConsumed | back to summary |
|---|---|
| public static void ensureStaticIntConsumed() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from org. This override does not do a "checked" dispatch.
| |
| generateSuperName | back to summary |
|---|---|
| public static String generateSuperName(String className, String superName) Generate a "super" stub for the given proxy class name and super method name. This name is intended to be unique to this class and method in order to allow jumping into the super chain at any point in the hierarchy, bypassing the default behavior of virtual and reflective calls. | |
| get_with_class | back to summary |
|---|---|
| public static RubyObject get_with_class(final IRubyObject self, IRubyObject obj)
Deprecated since 10.0.
| |
| get_with_class | back to summary |
|---|---|
public static RubyObject get_with_class(ThreadContext context, final IRubyObject self, IRubyObject obj)
| |
| getConstructor | back to summary |
|---|---|
| public JavaProxyConstructor getConstructor(final Class<T>[] args) throws SecurityException, NoSuchMethodException
Deprecated since 10.0.
| |
| getConstructors | back to summary |
|---|---|
| public JavaProxyConstructor[] getConstructors()
Deprecated since 10.0.
| |
| getConstructors | back to summary |
|---|---|
| public JavaProxyConstructor[] getConstructors(ThreadContext context) | |
| getInterfaces | back to summary |
|---|---|
| public Class | |
| 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. | |
| getMethod | back to summary |
|---|---|
| public JavaProxyMethod getMethod(String name, Class<T>[] parameterTypes) | |
| getMethods | back to summary |
|---|---|
| public JavaProxyMethod[] getMethods() | |
| getProxyClass | back to summary |
|---|---|
| public static JavaProxyClass getProxyClass(final Ruby runtime, final RubyClass clazz)
Deprecated since 10.0.
| |
| getProxyClass | back to summary |
|---|---|
| public static JavaProxyClass getProxyClass(ThreadContext context, final RubyClass clazz) | |
| getStaticInitLookup | back to summary |
|---|---|
| public static Object[] getStaticInitLookup(final int id) | |
| getSuperclass | back to summary |
|---|---|
| public Class | |
| getValue | back to summary |
|---|---|
| public Object getValue() | |
| 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.
| |
| initMethod | back to summary |
|---|---|
public void initMethod(ThreadContext context, final String name, final String desc, final boolean hasSuper)
| |
| interfaces | back to summary |
|---|---|
| public RubyArray Deprecated since 10.0.
| |
| interfaces | back to summary |
|---|---|
public RubyArray
| |
| methods | back to summary |
|---|---|
| public RubyArray Deprecated since 10.0.
| |
| methods | back to summary |
|---|---|
public RubyArray
| |
| nameOnInspection | back to summary |
|---|---|
| public final String nameOnInspection() | |
| parse | back to summary |
|---|---|
| private static Class | |
| setProxyClassReified | back to summary |
|---|---|
| public static JavaProxyClass setProxyClassReified(ThreadContext context, final RubyClass clazz, final Class<? extends ReifiedJavaProxy> reified, final boolean allocator) | |
| superclass | back to summary |
|---|---|
| public IRubyObject superclass()
Deprecated since 10.0.
| |
| superclass | back to summary |
|---|---|
public IRubyObject superclass(ThreadContext context)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final Class | |
| private final JavaProxyClass | |
| private Object | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| public | ProxyMethodImpl(Ruby runtime, final JavaProxyClass clazz, final Method method, final Method superMethod)
|
| Modifier and Type | Method and Description |
|---|---|
| public RubyArray | |
| public RubyArray | |
| public RubyFixnum | |
| public RubyFixnum | |
| public static RubyClass | |
| public Object | |
| public IRubyObject | do_invoke(final IRubyObject[] args)
Deprecated
since 10.0. Use
ProxyMethodImpl#do_invoke(ThreadContext, IRubyObject[]) instead.
|
| public IRubyObject | |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public final int | |
| public final JavaProxyClass | |
| public final Class | |
| private static RubyClass | |
| public Method | |
| public int | |
| public String | |
| public final Class | |
| public final Class | |
| public Object | getState()
Implements org. get state (cache target callable?) in the proxy method |
| public Method | |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public boolean | hasSuperImplementation()
Implements org. is it possible to call the super method? |
| public RubyString | inspect()
Overrides org. Implements org.
Deprecated
since 10.0.
RubyMethod inspect. |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public Object | |
| public final boolean | |
| public final boolean | |
| public RubyObject | |
| public void | setState(Object state)
Implements org. store state (cache target callable?) in the proxy method |
| public IRubyObject | |
| public IRubyObject | |
| public String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| method | back to summary |
|---|---|
| private final Method method | |
| parameterTypes | back to summary |
|---|---|
| private final Class<T>[] parameterTypes | |
| proxyClass | back to summary |
|---|---|
| private final JavaProxyClass proxyClass | |
| state | back to summary |
|---|---|
| private Object state | |
| superMethod | back to summary |
|---|---|
| private final Method superMethod | |
| ProxyMethodImpl | back to summary |
|---|---|
| public ProxyMethodImpl(Ruby runtime, final JavaProxyClass clazz, final Method method, final Method superMethod) | |
| argument_types | back to summary |
|---|---|
| public RubyArray Deprecated since 10.0.
| |
| argument_types | back to summary |
|---|---|
public RubyArray
| |
| arity | back to summary |
|---|---|
| public RubyFixnum arity()
Deprecated since 10.0.
| |
| arity | back to summary |
|---|---|
public RubyFixnum arity(ThreadContext context)
| |
| createJavaProxyMethodClass | back to summary |
|---|---|
| public static RubyClass createJavaProxyMethodClass(ThreadContext context, RubyClass Object, RubyModule Java) | |
| defaultResult | back to summary |
|---|---|
| public Object defaultResult() Implements org. Deprecated
| |
| do_invoke | back to summary |
|---|---|
public IRubyObject do_invoke(final IRubyObject[] args)
| |
| do_invoke | back to summary |
|---|---|
public IRubyObject do_invoke(ThreadContext context, final IRubyObject[] args)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from org. This override does not do a "checked" dispatch.
| |
| getArity | back to summary |
|---|---|
| public final int getArity() Implements org. | |
| getDeclaringClass | back to summary |
|---|---|
| public final JavaProxyClass getDeclaringClass() Implements org.
| |
| getExceptionTypes | back to summary |
|---|---|
| public final Class Implements org. | |
| getJavaProxyMethod | back to summary |
|---|---|
| private static RubyClass getJavaProxyMethod(ThreadContext context) | |
| getMethod | back to summary |
|---|---|
| public Method getMethod() | |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements org. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. | |
| getParameterTypes | back to summary |
|---|---|
| public final Class Implements org. | |
| getReturnType | back to summary |
|---|---|
| public final Class Implements org. | |
| getState | back to summary |
|---|---|
| public Object getState() Implements org. Doc from org. get state (cache target callable?) in the proxy method | |
| getSuperMethod | back to summary |
|---|---|
| public Method getSuperMethod() Implements org. | |
| 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.
| |
| hasSuperImplementation | back to summary |
|---|---|
| public boolean hasSuperImplementation() Implements org. Doc from org. is it possible to call the super method? | |
| inspect | back to summary |
|---|---|
| public RubyString inspect() Overrides org. Implements org. Doc from org. Deprecated since 10.0. RubyMethod inspect.
| |
| inspect | back to summary |
|---|---|
| public RubyString inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException Implements org.
| |
| isVarArgs | back to summary |
|---|---|
| public final boolean isVarArgs() Implements org. | |
| matches | back to summary |
|---|---|
| public final boolean matches(final String name, final Class<?>[] parameterTypes) | |
| name | back to summary |
|---|---|
| public RubyObject name()
Deprecated since 10.0.
| |
| setState | back to summary |
|---|---|
| public void setState(Object state) Implements org. Doc from org. store state (cache target callable?) in the proxy method | |
| super_p | back to summary |
|---|---|
| public IRubyObject super_p()
Deprecated since 10.0.
| |
| super_p | back to summary |
|---|---|
public IRubyObject super_p(ThreadContext context)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. The default toString method is just a wrapper that calls the Ruby "to_s" method. | |