| Modifier and Type | Field and Description |
|---|---|
| private static final Signature[] | |
| private static final Signature | |
| private static final Signature | |
| private static final Signature | |
| private static final Signature | |
| private final boolean | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile boolean | |
| private Supplier | |
| private Supplier | |
| private Supplier | |
| private Supplier | |
| private Supplier | |
| private final int | |
| private final int | |
| private final boolean | |
| private final String | |
| private final Signature | |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle |
| Access | Constructor and Description |
|---|---|
| public | HandleMethod(RubyModule implementationClass, Visibility visibility, String name, long encodedSignature, boolean builtin, boolean notImplemented, String parameterDesc, final int min, final int max, final Supplier<MethodHandle> maker0, final Supplier<MethodHandle> maker1, final Supplier<MethodHandle> maker2, final Supplier<MethodHandle> maker3, final Supplier<MethodHandle> maker4)
|
| Modifier and Type | Method and Description |
|---|---|
| private MethodHandle | |
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding clazz, String The incoming name used to invoke this method name, IRubyObject[] The argument list to this invocation args, Block The block passed to this invocation block)Implements abstract org. The minimum 'call' method required for a dynamic method handle. |
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block)
Overrides org.
|
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
Overrides org.
|
| public DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle | |
| private MethodHandle | |
| public Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| public MethodHandle | |
| public String[] | |
| public Signature | getSignature()
Overrides org. Retrieve the signature of this method. |
| public boolean | isBuiltin()
Overrides org. Whether this method is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process. |
| public boolean | isNative()
Overrides org. Returns true if this method is backed by native (i.e. Java) code. |
| public boolean | isNotImplemented()
Overrides org. Whether this method is "not implemented". |
| ARITIES | back to summary |
|---|---|
| private static final Signature[] ARITIES | |
| ARITY_0 | back to summary |
|---|---|
| private static final Signature ARITY_0 | |
| ARITY_1 | back to summary |
|---|---|
| private static final Signature ARITY_1 | |
| ARITY_2 | back to summary |
|---|---|
| private static final Signature ARITY_2 | |
| ARITY_3 | back to summary |
|---|---|
| private static final Signature ARITY_3 | |
| builtin | back to summary |
|---|---|
| private final boolean builtin | |
| initialized0 | back to summary |
|---|---|
| private volatile boolean initialized0 | |
| initialized1 | back to summary |
|---|---|
| private volatile boolean initialized1 | |
| initialized2 | back to summary |
|---|---|
| private volatile boolean initialized2 | |
| initialized3 | back to summary |
|---|---|
| private volatile boolean initialized3 | |
| initialized4 | back to summary |
|---|---|
| private volatile boolean initialized4 | |
| maker0 | back to summary |
|---|---|
| private Supplier<MethodHandle> maker0 | |
| maker1 | back to summary |
|---|---|
| private Supplier<MethodHandle> maker1 | |
| maker2 | back to summary |
|---|---|
| private Supplier<MethodHandle> maker2 | |
| maker3 | back to summary |
|---|---|
| private Supplier<MethodHandle> maker3 | |
| maker4 | back to summary |
|---|---|
| private Supplier<MethodHandle> maker4 | |
| max | back to summary |
|---|---|
| private final int max | |
| min | back to summary |
|---|---|
| private final int min | |
| notImplemented | back to summary |
|---|---|
| private final boolean notImplemented | |
| parameterDesc | back to summary |
|---|---|
| private final String parameterDesc | |
| signature | back to summary |
|---|---|
| private final Signature signature | |
| target0 | back to summary |
|---|---|
| private MethodHandle target0 | |
| target1 | back to summary |
|---|---|
| private MethodHandle target1 | |
| target2 | back to summary |
|---|---|
| private MethodHandle target2 | |
| target3 | back to summary |
|---|---|
| private MethodHandle target3 | |
| target4 | back to summary |
|---|---|
| private MethodHandle target4 | |
| HandleMethod | back to summary |
|---|---|
| public HandleMethod(RubyModule implementationClass, Visibility visibility, String name, long encodedSignature, boolean builtin, boolean notImplemented, String parameterDesc, final int min, final int max, final Supplier<MethodHandle> maker0, final Supplier<MethodHandle> maker1, final Supplier<MethodHandle> maker2, final Supplier<MethodHandle> maker3, final Supplier<MethodHandle> maker4) | |
| adaptSpecificToVarargs | back to summary |
|---|---|
| private MethodHandle adaptSpecificToVarargs(MethodHandle varargs, int arity) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) Overrides org.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Overrides org.
| |
| dup | back to summary |
|---|---|
| public DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |
| ensureTarget0 | back to summary |
|---|---|
| private MethodHandle ensureTarget0() | |
| ensureTarget1 | back to summary |
|---|---|
| private MethodHandle ensureTarget1() | |
| ensureTarget2 | back to summary |
|---|---|
| private MethodHandle ensureTarget2() | |
| ensureTarget3 | back to summary |
|---|---|
| private MethodHandle ensureTarget3() | |
| ensureTarget4 | back to summary |
|---|---|
| private MethodHandle ensureTarget4() | |
| getArity | back to summary |
|---|---|
| public Arity getArity() Overrides org. Doc from org. Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
| |
| getHandle | back to summary |
|---|---|
| public MethodHandle getHandle(int arity) | |
| getParameterList | back to summary |
|---|---|
| public String[] getParameterList() Implements org.
| |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() Overrides org. Doc from org. Retrieve the signature of this method. | |
| isBuiltin | back to summary |
|---|---|
| public boolean isBuiltin() Overrides org. Doc from org. Whether this method is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process.
| |
| isNative | back to summary |
|---|---|
| public boolean isNative() Overrides org. Doc from org. Returns true if this method is backed by native (i.e. Java) code.
| |
| isNotImplemented | back to summary |
|---|---|
| public boolean isNotImplemented() Overrides org. Doc from org. Whether this method is "not implemented". This is primarily to support Ruby 1.9's behavior of respond_to? yielding false if the feature in question is unsupported (but still having the method defined).
| |