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 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 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
-
returnType
-
parameterArray
-