Module org.glassfish.hk2.classmodel
Interface MethodModel
- All Superinterfaces:
AnnotatedElement,Member
- All Known Implementing Classes:
MethodModelImpl
Model to represent a method declaration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.Member
Member.Type -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the parameter types as stringReturns the class or interface model this method belongs to.String[]getParameter(int index) Return the parameter by indexReturns the list of parameterReturns the method return typeReturns the method signature.Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDescMethods inherited from interface org.glassfish.hk2.classmodel.reflect.Member
getMemberType
-
Method Details
-
getDeclaringType
ExtensibleType<?> getDeclaringType()Returns the class or interface model this method belongs to.- Specified by:
getDeclaringTypein interfaceMember- Returns:
- the class of this method
-
getSignature
String getSignature()Returns the method signature.- Returns:
- this method signature
-
getReturnType
ParameterizedType getReturnType()Returns the method return type- Returns:
- the method's return type
-
getArgumentTypes
String[] getArgumentTypes()Returns the parameter types as string- Returns:
- the parameter types
-
getExceptionTypes
String[] getExceptionTypes()- Returns:
- the checked exception types, or an empty array if the method doesn't declare any thrown exceptions
-
getParameters
Returns the list of parameter- Returns:
- the list of parameter
-
getParameter
Return the parameter by index- Parameters:
index-- Returns:
- the parameter by index
-