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 representjava.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
of(java.lang.Object returnType, java.lang.Object[] parameterType)
Resolves ajava.lang.constant.MethodTypeDesc
from descriptions of the return type descriptor and parameter types.java.lang.Object
ofDescriptor(java.lang.String descriptor)
Returns ajava.lang.constant.MethodTypeDesc
for a given descriptor.java.lang.Object[]
parameterArray(java.lang.Object value)
Returns the parameter types of ajava.lang.constant.MethodTypeDesc
.java.lang.Object
returnType(java.lang.Object value)
Returns the return type of ajava.lang.constant.MethodTypeDesc
.-
Methods inherited from interface net.bytebuddy.utility.JavaConstant.Simple.Dispatcher
isInstance, toArray
-
-
-
-
Method Detail
-
of
@IsStatic java.lang.Object of(@Proxied("java.lang.constant.ClassDesc") java.lang.Object returnType, @Proxied("java.lang.constant.ClassDesc") java.lang.Object[] parameterType)
Resolves ajava.lang.constant.MethodTypeDesc
from descriptions of the return type descriptor and parameter types.- Parameters:
returnType
- Ajava.lang.constant.ClassDesc
representing the return type.parameterType
- An array ofjava.lang.constant.ClassDesc
s representing the parameter types.- Returns:
- An appropriate
java.lang.constant.MethodTypeDesc
.
-
ofDescriptor
@IsStatic java.lang.Object ofDescriptor(java.lang.String descriptor)
Returns ajava.lang.constant.MethodTypeDesc
for a given descriptor.- Parameters:
descriptor
- The method type's descriptor.- Returns:
- A
java.lang.constant.MethodTypeDesc
of the supplied descriptor
-
returnType
java.lang.Object returnType(java.lang.Object value)
Returns the return type of ajava.lang.constant.MethodTypeDesc
.- Parameters:
value
- Thejava.lang.constant.MethodTypeDesc
to resolve.- Returns:
- A
java.lang.constant.ClassDesc
of the suppliedjava.lang.constant.MethodTypeDesc
's return type.
-
parameterArray
java.lang.Object[] parameterArray(java.lang.Object value)
Returns the parameter types of ajava.lang.constant.MethodTypeDesc
.- Parameters:
value
- Thejava.lang.constant.MethodTypeDesc
to resolve.- Returns:
- An array of
java.lang.constant.ClassDesc
of the suppliedjava.lang.constant.MethodTypeDesc
's parameter types.
-
-