| Modifier and Type | Method and Description |
|---|---|
| public MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typethe index of the parameter to change index, ClassDesc a paramType)ClassDesc describing the new parameter typeRedeclares java. Returns a MethodTypeDesc that is identical to this one, except that a single parameter type has been changed to the specified type. |
| public MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typea returnType)ClassDesc describing the new return typeRedeclares java. Returns a MethodTypeDesc that is identical to this one, except with the specified return type. |
| public String | Returns: the method type descriptor stringRedeclares java. Returns the method type descriptor string. |
| public default String | Returns: the human-readable descriptor for this method typeReturns a human-readable descriptor for this method type, using the canonical names for parameter and return types. |
| public MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typethe index of the first parameter to remove start, int the index after the last parameter to remove end)Redeclares java. Returns a MethodTypeDesc that is identical to this one, except that a range of parameter types have been removed. |
| public boolean | |
| public MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typethe index at which to insert the first inserted parameter pos, ClassDesc... ClassDescs describing the new parameter types
to insertRedeclares java. Returns a MethodTypeDesc that is identical to this one, except that a range of additional parameter types have been inserted. |
| public static MethodTypeDesc | Returns: a MethodTypeDesc with the given return type and no parameter typesa ClassDesc describing the return type returnDesc)Returns a MethodTypeDesc with the given return type and no parameter types. |
| public static MethodTypeDesc | Returns: a MethodTypeDesc given the return type and a list of parameter typesa ClassDesc describing the return type returnDesc, List<ClassDesc> paramDescs)Returns a MethodTypeDesc given the return type and a list of parameter types. |
| public static MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typea ClassDesc describing the return type returnDesc, ClassDesc... ClassDescs describing the argument types paramDescs)Returns a MethodTypeDesc given the return type and parameter types. |
| public static MethodTypeDesc | Returns: a MethodTypeDesc describing the desired method typea method descriptor string descriptor)Creates a MethodTypeDesc given a method descriptor string. |
| public ClassDesc[] | Returns: an array ofClassDesc describing the parameter typesRedeclares java. Returns the parameter types as an array. |
| public int | Returns: the number of parametersRedeclares java. Returns the number of parameters of the method type described by this MethodTypeDesc. |
| public List | parameterList()
Redeclares java. Returns the parameter types as an immutable |
| public ClassDesc | Returns: aClassDesc describing the desired parameter typethe index of the parameter to retrieve index)Redeclares java. Returns the parameter type of the |
| public MethodType | resolveConstantDesc(MethodHandles.
Redeclares java. Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. |
| public ClassDesc | Returns: aClassDesc describing the return type of the method typeRedeclares java. Gets the return type of the method type described by this MethodTypeDesc. |
| changeParameterType | back to summary |
|---|---|
| public MethodTypeDesc changeParameterType(int index, ClassDesc paramType) Redeclares java. Returns a MethodTypeDesc that is identical to this one, except that a single parameter type has been changed to the specified type.
| |
| changeReturnType | back to summary |
|---|---|
| public MethodTypeDesc changeReturnType(ClassDesc returnType) Redeclares java. Returns a MethodTypeDesc that is identical to this one, except with the specified return type.
| |
| descriptorString | back to summary |
|---|---|
| public String descriptorString() Redeclares java. Returns the method type descriptor string.
| |
| displayDescriptor | back to summary |
|---|---|
| public default String displayDescriptor() Returns a human-readable descriptor for this method type, using the canonical names for parameter and return types.
| |
| dropParameterTypes | back to summary |
|---|---|
| public MethodTypeDesc dropParameterTypes(int start, int end) Redeclares java. Returns a MethodTypeDesc that is identical to this one, except that a range of parameter types have been removed.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Compares the specified object with this descriptor for equality. Returns
| |
| insertParameterTypes | back to summary |
|---|---|
| public MethodTypeDesc insertParameterTypes(int pos, ClassDesc... paramTypes) Redeclares java. Returns a MethodTypeDesc that is identical to this one, except that a range of additional parameter types have been inserted.
| |
| of | back to summary |
|---|---|
| public static MethodTypeDesc of(ClassDesc returnDesc) Returns a MethodTypeDesc with the given return type and no parameter types.
| |
| of | back to summary |
|---|---|
| public static MethodTypeDesc of(ClassDesc returnDesc, List<ClassDesc> paramDescs) Returns a MethodTypeDesc given the return type and a list of parameter types.
| |
| of | back to summary |
|---|---|
| public static MethodTypeDesc of(ClassDesc returnDesc, ClassDesc... paramDescs) Returns a MethodTypeDesc given the return type and parameter types.
| |
| ofDescriptor | back to summary |
|---|---|
| public static MethodTypeDesc ofDescriptor(String descriptor) Creates a MethodTypeDesc given a method descriptor string.
| |
| parameterArray | back to summary |
|---|---|
| public ClassDesc[] parameterArray() Redeclares java. Returns the parameter types as an array. | |
| parameterCount | back to summary |
|---|---|
| public int parameterCount() Redeclares java. Returns the number of parameters of the method type described by this MethodTypeDesc.
| |
| parameterList | back to summary |
|---|---|
| public List Redeclares java. Returns the parameter types as an immutable | |
| parameterType | back to summary |
|---|---|
| public ClassDesc parameterType(int index) Redeclares java. Returns the parameter type of the
| |
| resolveConstantDesc | back to summary |
|---|---|
| public MethodType 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 API Note MethodTypeDesc can represent method type descriptors that are not representable by MethodType, such as methods with more than 255 parameter slots, so attempts to resolve these may result in errors.
| |
| returnType | back to summary |
|---|---|
| public ClassDesc returnType() Redeclares java. Gets the return type of the method type described by this MethodTypeDesc. | |