getTarget(CallSiteDescriptor). Can be used in general to represents dynamic methods bound to a single method handle,
even if that handle is not mapped to a Java method, i.e. as a wrapper around field getters/setters, array element
getters/setters, etc.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final MethodHandle |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleDynamicMethod(final MethodHandle
the target method handle target, final Class<?> the class declaring the method clazz, final String the simple name of the method name)Creates a new simple dynamic method, with a name constructed from the class name, method name, and handle signature. |
| pack-priv | SimpleDynamicMethod(final MethodHandle
the target method handle target, final Class<?> the class declaring the method clazz, final String the simple name of the method name, final boolean does this represent a constructor? constructor)Creates a new simple dynamic method, with a name constructed from the class name, method name, and handle signature. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MethodType | getMethodType()
Implements abstract jdk. Returns this method's native type. |
| private static String | getName(final MethodHandle target, final Class<?> clazz, final String name, final boolean constructor)
|
| pack-priv MethodHandle | getTarget(final CallSiteDescriptor desc)
Implements abstract jdk. Given a specified call site descriptor, returns a method handle to this method's target. |
| pack-priv boolean | isConstructor()
Overrides jdk. True if this method happens to be a constructor method. |
| pack-priv boolean | isVarArgs()
Implements abstract jdk. Returns true if this method is variable arity. |
| constructor | back to summary |
|---|---|
| private final boolean constructor | |
| target | back to summary |
|---|---|
| private final MethodHandle target | |
| SimpleDynamicMethod | back to summary |
|---|---|
| pack-priv SimpleDynamicMethod(final MethodHandle target, final Class<?> clazz, final String name) Creates a new simple dynamic method, with a name constructed from the class name, method name, and handle signature.
| |
| SimpleDynamicMethod | back to summary |
|---|---|
| pack-priv SimpleDynamicMethod(final MethodHandle target, final Class<?> clazz, final String name, final boolean constructor) Creates a new simple dynamic method, with a name constructed from the class name, method name, and handle signature.
| |
| getMethodType | back to summary |
|---|---|
| pack-priv MethodType getMethodType() Implements abstract jdk. Doc from jdk. Returns this method's native type.
| |
| getName | back to summary |
|---|---|
| private static String getName(final MethodHandle target, final Class<?> clazz, final String name, final boolean constructor) | |
| getTarget | back to summary |
|---|---|
| pack-priv MethodHandle getTarget(final CallSiteDescriptor desc) Implements abstract jdk. Doc from jdk. Given a specified call site descriptor, returns a method handle to this method's target. The target should only depend on the descriptor's lookup, and it should only retrieve it (as a privileged operation) when it is absolutely needed.
| |
| isConstructor | back to summary |
|---|---|
| pack-priv boolean isConstructor() Overrides jdk. Doc from jdk. True if this method happens to be a constructor method.
| |
| isVarArgs | back to summary |
|---|---|
| pack-priv boolean isVarArgs() Implements abstract jdk. Doc from jdk. Returns true if this method is variable arity.
| |