- All Superinterfaces:
MemberDesc,MethodTyped,Typed
- All Known Subinterfaces:
ClassMethodDesc,InterfaceMethodDesc
public sealed interface MethodDesc
extends MemberDesc, MethodTyped
permits ClassMethodDesc, InterfaceMethodDesc (not exhaustive)
A descriptor for a method.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic MethodDescConstruct a new instance.static MethodDescConstruct a new instance.static MethodDescof(Class<?> owner, String name, MethodTypeDesc type) Construct a new instance.static MethodDescof(Class<?> owner, String name, MethodType type) Construct a new instance.static MethodDescReturns a method descriptor for the given method.Methods inherited from interface io.quarkus.gizmo2.desc.MemberDesc
name, owner, toString, typeMethods inherited from interface io.quarkus.gizmo2.MethodTyped
genericReturnType, hasGenericReturnType, isPrimitiveParameter, isPrimitiveReturn, isVoidReturn, parameterCount, parameterSlotSize, parameterType, parameterTypeKind, parameterTypes, returnSlotSize, returnType, returnTypeKind, type
-
Method Details
-
of
Construct a new instance.- Parameters:
owner- the class which contains the method (must not benull)name- the name of the method (must not benull)type- the descriptor of the type of the method (must not benull)- Returns:
- the method descriptor (must not be
null)
-
of
Construct a new instance.- Parameters:
owner- the class which contains the method (must not benull)name- the name of the method (must not benull)type- the type of the method (must not benull)- Returns:
- the method descriptor (must not be
null)
-
of
Construct a new instance.- Parameters:
owner- the class which contains the method (must not benull)name- the name of the method (must not benull)returnType- the class of the return type (must not benull)paramTypes- the classes of the parameter types (must not benull)- Returns:
- the method descriptor (must not be
null)
-
of
Construct a new instance.- Parameters:
owner- the class which contains the method (must not benull)name- the name of the method (must not benull)returnType- the class of the return type (must not benull)paramTypes- the classes of the parameter types (must not benull)- Returns:
- the method descriptor (must not be
null)
-
of
Returns a method descriptor for the given method.- Parameters:
method- the method (must not benull)- Returns:
- a method descriptor for the given method
-