Class ElementAltMethodImpl
java.lang.Object
org.glassfish.hk2.xml.internal.alt.papi.ElementAltMethodImpl
- All Implemented Interfaces:
AltMethod
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(String annotation) Returns the annotation if found on the method, or null if not foundReturns the first type argument of the return value.getFirstTypeArgumentOfParameter(int index) Gets the method information once it has been calculated.getName()Returns the name of the methodReturns the return type of the methodbooleanvoidsetMethodInformation(MethodInformationI methodInfo) Sets the method information once it has been calculated.toString()
-
Constructor Details
-
ElementAltMethodImpl
-
-
Method Details
-
getName
Description copied from interface:AltMethodReturns the name of the method -
getReturnType
Description copied from interface:AltMethodReturns the return type of the method- Specified by:
getReturnTypein interfaceAltMethod- Returns:
- The non-null return type (may still be an AltClass representing void.class)
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceAltMethod
-
getFirstTypeArgument
Description copied from interface:AltMethodReturns the first type argument of the return value. For example, if the return type is List<String> then this would return an AltClass for String- Specified by:
getFirstTypeArgumentin interfaceAltMethod- Returns:
- The possibly null (if there is no first type argument) Class that is the first type argument of the return value
-
getFirstTypeArgumentOfParameter
- Specified by:
getFirstTypeArgumentOfParameterin interfaceAltMethod
-
getAnnotation
Description copied from interface:AltMethodReturns the annotation if found on the method, or null if not found- Specified by:
getAnnotationin interfaceAltMethod- Returns:
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAltMethod
-
setMethodInformation
Description copied from interface:AltMethodSets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later- Specified by:
setMethodInformationin interfaceAltMethod- Parameters:
methodInfo- The possibly null methodInformation
-
getMethodInformation
Description copied from interface:AltMethodGets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later- Specified by:
getMethodInformationin interfaceAltMethod- Returns:
- The possibly null methodInformation
-
isVarArgs
public boolean isVarArgs() -
toString
-