Interface AltMethod
- All Known Implementing Classes:
ElementAltMethodImpl,MethodAltMethodImpl
public interface AltMethod
- Author:
- jwells
-
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.
-
Method Details
-
getName
String getName()Returns the name of the method- Returns:
- The non null name of the method
-
getReturnType
AltClass getReturnType()Returns the return type of the method- Returns:
- The non-null return type (may still be an AltClass representing void.class)
-
getParameterTypes
-
getFirstTypeArgument
AltClass getFirstTypeArgument()Returns 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- Returns:
- The possibly null (if there is no first type argument) Class that is the first type argument of the return value
-
getFirstTypeArgumentOfParameter
-
getAnnotation
Returns the annotation if found on the method, or null if not found- Parameters:
annotation-- Returns:
-
getAnnotations
List<AltAnnotation> getAnnotations() -
isVarArgs
boolean isVarArgs() -
setMethodInformation
Sets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later- Parameters:
methodInfo- The possibly null methodInformation
-
getMethodInformation
MethodInformationI getMethodInformation()Gets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later- Returns:
- The possibly null methodInformation
-