Package net.bytebuddy.utility
Interface JavaConstant.Simple.Dispatcher.OfMethodTypeDesc
- All Superinterfaces:
JavaConstant.Simple.Dispatcher
- Enclosing interface:
JavaConstant.Simple.Dispatcher
@Proxied("java.lang.constant.MethodTypeDesc")
public static interface JavaConstant.Simple.Dispatcher.OfMethodTypeDesc
extends JavaConstant.Simple.Dispatcher
A dispatcher to represent
java.lang.constant.MethodTypeDesc.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.utility.JavaConstant.Simple.Dispatcher
JavaConstant.Simple.Dispatcher.OfClassDesc, JavaConstant.Simple.Dispatcher.OfDirectMethodHandleDesc, JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc, JavaConstant.Simple.Dispatcher.OfMethodHandleDesc, JavaConstant.Simple.Dispatcher.OfMethodTypeDesc -
Method Summary
Modifier and TypeMethodDescriptionResolves ajava.lang.constant.MethodTypeDescfrom descriptions of the return type descriptor and parameter types.ofDescriptor(String descriptor) Returns ajava.lang.constant.MethodTypeDescfor a given descriptor.Object[]parameterArray(Object value) Returns the parameter types of ajava.lang.constant.MethodTypeDesc.returnType(Object value) Returns the return type of ajava.lang.constant.MethodTypeDesc.Methods inherited from interface net.bytebuddy.utility.JavaConstant.Simple.Dispatcher
isInstance, toArray
-
Method Details
-
of
@IsStatic Object of(@Proxied("java.lang.constant.ClassDesc") Object returnType, @Proxied("java.lang.constant.ClassDesc") Object[] parameterType) Resolves ajava.lang.constant.MethodTypeDescfrom descriptions of the return type descriptor and parameter types.- Parameters:
returnType- Ajava.lang.constant.ClassDescrepresenting the return type.parameterType- An array ofjava.lang.constant.ClassDescs representing the parameter types.- Returns:
- An appropriate
java.lang.constant.MethodTypeDesc.
-
ofDescriptor
Returns ajava.lang.constant.MethodTypeDescfor a given descriptor.- Parameters:
descriptor- The method type's descriptor.- Returns:
- A
java.lang.constant.MethodTypeDescof the supplied descriptor
-
returnType
Returns the return type of ajava.lang.constant.MethodTypeDesc.- Parameters:
value- Thejava.lang.constant.MethodTypeDescto resolve.- Returns:
- A
java.lang.constant.ClassDescof the suppliedjava.lang.constant.MethodTypeDesc's return type.
-
parameterArray
Returns the parameter types of ajava.lang.constant.MethodTypeDesc.- Parameters:
value- Thejava.lang.constant.MethodTypeDescto resolve.- Returns:
- An array of
java.lang.constant.ClassDescof the suppliedjava.lang.constant.MethodTypeDesc's parameter types.
-