Constructor and Description |
---|
ElementAltMethodImpl(Element method,
ProcessingEnvironment processingEnv) |
Modifier and Type | Method and Description |
---|---|
AltAnnotation |
getAnnotation(String annotation)
Returns the annotation if found on the method, or
null if not found
|
List<AltAnnotation> |
getAnnotations() |
AltClass |
getFirstTypeArgument()
Returns the first type argument of the
return value.
|
AltClass |
getFirstTypeArgumentOfParameter(int index) |
MethodInformationI |
getMethodInformation()
Gets the method information once it has been calculated.
|
String |
getName()
Returns the name of the method
|
List<AltClass> |
getParameterTypes() |
AltClass |
getReturnType()
Returns the return type of the method
|
boolean |
isVarArgs() |
void |
setMethodInformation(MethodInformationI methodInfo)
Sets the method information once it has been calculated.
|
String |
toString() |
public ElementAltMethodImpl(Element method, ProcessingEnvironment processingEnv)
public String getName()
AltMethod
public AltClass getReturnType()
AltMethod
getReturnType
in interface AltMethod
public List<AltClass> getParameterTypes()
getParameterTypes
in interface AltMethod
public AltClass getFirstTypeArgument()
AltMethod
getFirstTypeArgument
in interface AltMethod
public AltClass getFirstTypeArgumentOfParameter(int index)
getFirstTypeArgumentOfParameter
in interface AltMethod
public AltAnnotation getAnnotation(String annotation)
AltMethod
getAnnotation
in interface AltMethod
public List<AltAnnotation> getAnnotations()
getAnnotations
in interface AltMethod
public void setMethodInformation(MethodInformationI methodInfo)
AltMethod
setMethodInformation
in interface AltMethod
methodInfo
- The possibly null methodInformationpublic MethodInformationI getMethodInformation()
AltMethod
getMethodInformation
in interface AltMethod
Copyright © 2009–2023 Oracle Corporation. All rights reserved.