|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAptMethod
public class AptMethod
The AptMethod class defines a base set of utility methods for acessing method attributes based upon an APT method declaration.
Constructor Summary | |
---|---|
AptMethod(MethodDeclaration methodDecl,
AnnotationProcessorEnvironment env)
Constructs a new AptMethod instance associated with a specific method declaration |
Method Summary | |
---|---|
String |
getArgDecl()
Returns the arguments declarations for the method, with no formal parameter binding applied |
String |
getArgDecl(HashMap<String,TypeMirror> bindingMap)
Returns the argument declaration of the method, applying the bindings in the provided type map to any parameter types |
String |
getArgList()
Default form of getArgList, that does not quote delimit arguments |
String |
getArgList(boolean quoteDelimit)
Returns the the method argument names, in a comma separated list |
String |
getArgTypes()
Returns the the method argument classes, in a comma separated list |
String |
getDefaultReturnValue()
Returns a default return value string for the method, with no type binding applied |
String |
getDefaultReturnValue(HashMap<String,TypeMirror> typeBinding)
Returns a default return value string for the method, based upon bound return type |
FeatureInfo |
getFeatureInfo()
Returns any FeatureInfo associated with the method (or null if none) |
String |
getFormalTypes()
Returns the declaration of any generic formal types associated with the method |
int |
getIndex()
Returns the unique index value for this method. |
String |
getInterceptorDecl()
Returns the names of interceptor service interfaces associated with this operation, formatted as a constant initializer string. |
Collection<String> |
getInterceptorServiceNames()
Returns the names of interceptor service interfaces associated with this operation |
String |
getName()
Returns the name of the method |
String |
getReturnType()
Returns the method return type with no type bindings applied |
String |
getReturnType(HashMap<String,TypeMirror> bindingMap)
Returns the method return type, applying any formal type parameter bindings defined by the provided map. |
String |
getThrowsClause()
Returns the throws clause of the operation |
ArrayList |
getThrowsList()
Returns an ArrayList of thrown exceptions |
boolean |
hasParameterizedArguments()
Returns 'true' if the method uses any parameterized types as parameters |
void |
setIndex(int index)
Sets the unique index value for this method. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AptMethod(MethodDeclaration methodDecl, AnnotationProcessorEnvironment env)
Method Detail |
---|
public String getName()
public String getArgDecl(HashMap<String,TypeMirror> bindingMap)
public String getArgDecl()
public String getArgList(boolean quoteDelimit)
public String getArgList()
public String getArgTypes()
public boolean hasParameterizedArguments()
public String getFormalTypes()
public String getReturnType(HashMap<String,TypeMirror> bindingMap)
public String getReturnType()
public String getThrowsClause()
public ArrayList getThrowsList()
public String getDefaultReturnValue(HashMap<String,TypeMirror> typeBinding)
public String getDefaultReturnValue()
public FeatureInfo getFeatureInfo()
public void setIndex(int index)
public int getIndex()
public Collection<String> getInterceptorServiceNames()
public String getInterceptorDecl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |