MethodHandle
constant.
Modifier and Type | Method and Description |
---|---|
public default MethodHandleDesc | Returns: a MethodHandleDesc for the adapted method handlea type)MethodHandleDesc describing the new method typeReturns a MethodHandleDesc that describes this method handle
adapted to a different type, as if by |
public boolean | |
public MethodTypeDesc | Returns: a MethodHandleDesc describing the method handle typeReturns a |
public static DirectMethodHandleDesc | Returns: the MethodHandleDescThe kind of method handle to be described kind,a owner, String ClassDesc describing the class containing the
method, constructor, or fieldthe unqualified name of the method or field (ignored if
name, String kind is CONSTRUCTOR )a method descriptor string the lookup type,
if the request is for a method invocation, or
describing the invocation type, if the request is
for a field or constructor lookupDescriptor)Creates a MethodHandleDesc corresponding to an invocation of a declared method, invocation of a constructor, or access to a field. |
public static DirectMethodHandleDesc | Returns: the MethodHandleDesca owner, ClassDesc... ClassDesc describing the class containing the
constructorClassDesc s describing the parameter types of
the constructorReturns a MethodHandleDesc corresponding to invocation of a constructor |
public static DirectMethodHandleDesc | Returns: the MethodHandleDescthe kind of the method handle to be described; must be one of kind,GETTER ,
SETTER , STATIC_GETTER , or STATIC_SETTER a owner, String ClassDesc describing the class containing the fieldthe unqualified name of the field fieldName, ClassDesc a fieldType)ClassDesc describing the type of the fieldCreates a MethodHandleDesc corresponding to a method handle that accesses a field. |
public static DirectMethodHandleDesc | Returns: the MethodHandleDescThe kind of method handle to be described; must be one of
kind,SPECIAL, VIRTUAL, STATIC, INTERFACE_SPECIAL,
INTERFACE_VIRTUAL, INTERFACE_STATIC, CONSTRUCTOR a owner, String ClassDesc describing the class containing the
method or constructorthe unqualified name of the method (ignored if name, MethodTypeDesc kind
is CONSTRUCTOR )a lookupMethodType)MethodTypeDesc describing the lookup typeCreates a MethodHandleDesc corresponding to an invocation of a declared method or constructor. |
public MethodHandle | resolveConstantDesc(MethodHandles.
The lookupMethodHandles. to provide name resolution
and access control contextRedeclares java. Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. |
asType | back to summary |
---|---|
public default MethodHandleDesc asType(MethodTypeDesc type) Returns a MethodHandleDesc that describes this method handle
adapted to a different type, as if by
|
equals | back to summary |
---|---|
public boolean equals(Object o) Compares the specified object with this descriptor for equality. Returns
|
invocationType | back to summary |
---|---|
public MethodTypeDesc invocationType() Returns a
|
of | back to summary |
---|---|
public static DirectMethodHandleDesc of(DirectMethodHandleDesc. Creates a MethodHandleDesc corresponding to an invocation of a declared method, invocation of a constructor, or access to a field. The lookup descriptor string has the same format as for the various
variants of
|
ofConstructor | back to summary |
---|---|
public static DirectMethodHandleDesc ofConstructor(ClassDesc owner, ClassDesc... paramTypes) Returns a MethodHandleDesc corresponding to invocation of a constructor
|
ofField | back to summary |
---|---|
public static DirectMethodHandleDesc ofField(DirectMethodHandleDesc. Creates a MethodHandleDesc corresponding to a method handle that accesses a field.
|
ofMethod | back to summary |
---|---|
public static DirectMethodHandleDesc ofMethod(DirectMethodHandleDesc. Creates a MethodHandleDesc corresponding to an invocation of a declared method or constructor. The lookup descriptor string has the same format as for the lookup
methods on
|
resolveConstantDesc | back to summary |
---|---|
public MethodHandle resolveConstantDesc(MethodHandles. Redeclares java. Doc from java. Resolves this descriptor reflectively, emulating the resolution behavior
of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. The resolution
and access control context is provided by the
|