Module org.glassfish.hk2.classmodel
Class MethodModelImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl
- All Implemented Interfaces:
AnnotatedElement,Member,MethodModel
Implementation of a method model
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.Member
Member.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the parameter types as stringReturns the class or interface model this method belongs to.String[]returns the type of the membergetParameter(int index) Return the parameter by indexReturns the list of parameterReturns the method return typeReturns the method signature.voidsetExceptionTypes(List<ParameterizedType> exceptionTypes) voidsetParameters(List<Parameter> parameters) voidsetReturnType(ParameterizedType returnType) Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, print, setApplicationClass, shortDesc, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
Constructor Details
-
MethodModelImpl
-
-
Method Details
-
getMemberType
Description copied from interface:Memberreturns the type of the member- Specified by:
getMemberTypein interfaceMember- Returns:
- the member type as a value of @link{Member#Type}
-
getDeclaringType
Description copied from interface:MethodModelReturns the class or interface model this method belongs to.- Specified by:
getDeclaringTypein interfaceMember- Specified by:
getDeclaringTypein interfaceMethodModel- Returns:
- the class of this method
-
getSignature
Description copied from interface:MethodModelReturns the method signature.- Specified by:
getSignaturein interfaceMethodModel- Returns:
- this method signature
-
getReturnType
Description copied from interface:MethodModelReturns the method return type- Specified by:
getReturnTypein interfaceMethodModel- Returns:
- the method's return type
-
setReturnType
-
getArgumentTypes
Description copied from interface:MethodModelReturns the parameter types as string- Specified by:
getArgumentTypesin interfaceMethodModel- Returns:
- the parameter types
-
getExceptionTypes
- Specified by:
getExceptionTypesin interfaceMethodModel- Returns:
- the checked exception types, or an empty array if the method doesn't declare any thrown exceptions
-
setExceptionTypes
-
getParameters
Description copied from interface:MethodModelReturns the list of parameter- Specified by:
getParametersin interfaceMethodModel- Returns:
- the list of parameter
-
getParameter
Description copied from interface:MethodModelReturn the parameter by index- Specified by:
getParameterin interfaceMethodModel- Parameters:
index-- Returns:
- the parameter by index
-
setParameters
-