MethodTypeDesc (Java SE 26 & JDK 26)
- All Superinterfaces:
ConstantDesc, TypeDescriptor, TypeDescriptor.OfMethod<ClassDesc, MethodTypeDesc>
-
Nested Class Summary
-
Method Summary
Returns a MethodTypeDesc that is identical to this one, except that a single parameter type has been changed to the specified type.
Returns a MethodTypeDesc that is identical to this one, except with the specified return type.
Returns the method type descriptor string.
Returns a human-readable descriptor for this method type, using the canonical names for parameter and return types.
dropParameterTypes(int start, int end) Returns a MethodTypeDesc that is identical to this one, except that a range of parameter types have been removed.
booleanCompares the specified object with this descriptor for equality.
Returns a MethodTypeDesc that is identical to this one, except that a range of additional parameter types have been inserted.
Returns a MethodTypeDesc with the given return type and no parameter types.
Returns a MethodTypeDesc given the return type and a list of parameter types.
Returns the parameter types as an array.
intReturns the number of parameters of the method type described by this MethodTypeDesc.
Returns the parameter types as an immutable
List.parameterType(int index) Returns the parameter type of the
index'th parameter of the method type described by this MethodTypeDesc.Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4.
Gets the return type of the method type described by this MethodTypeDesc.
-
Method Details
-
ofDescriptor
-
of
-
of
-
of
-
returnType
-
parameterCount
-
parameterType
-
parameterList
-
parameterArray
-
changeReturnType
-
changeParameterType
-
dropParameterTypes
-
insertParameterTypes
-
descriptorString
-
displayDescriptor
-
resolveConstantDesc
-
equals
-