public class TargetAnnotationHelper extends AnnotationHelper
DEFAULT_FIELD_NAME_RESNAME, DEFAULT_FIELD_NAME_VALUE
Constructor and Description |
---|
TargetAnnotationHelper(ProcessingEnvironment processingEnv,
String annotationName) |
Modifier and Type | Method and Description |
---|---|
String |
actionName() |
String |
annotationName() |
static String |
annotationName(Class<? extends Annotation> annotation) |
static String |
annotationName(String annotationName) |
DeclaredType |
extractAnnotationClassParameter(Element element) |
<T> T |
extractAnnotationParameter(Element element,
String methodName) |
<T> T |
extractAnnotationValueParameter(Element element) |
String |
getTarget() |
void |
printAnnotationError(Element annotatedElement,
String message) |
void |
printAnnotationWarning(Element annotatedElement,
String message) |
actionName, defaultResIdValue, defaultResName, directSupertypes, enclosingElementHasEnhancedComponentAnnotation, extractAnnotationClassArrayParameter, extractAnnotationClassParameter, extractAnnotationClassParameter, extractAnnotationFieldRefs, extractAnnotationFieldRefs, extractAnnotationParameter, extractAnnotationResIdValueParameter, extractAnnotationResIdValueParameter, extractAnnotationResNameParameter, extractAnnotationResNameParameter, extractAnnotationResources, extractAnnotationResources, extractElementName, findAnnotationMirror, generatedClassQualifiedNameFromQualifiedName, getElementUtils, getTypeUtils, hasOneOfClassAnnotations, hasOneOfClassAnnotations, isAbstract, isAnnotation, isFinal, isInterface, isPrivate, isPublic, isStatic, isSubtype, isSubtype, isSynchronized, isTopLevel, printAnnotationError, printAnnotationMessage, printAnnotationWarning, printError, typeElementFromQualifiedName
public TargetAnnotationHelper(ProcessingEnvironment processingEnv, String annotationName)
public <T> T extractAnnotationValueParameter(Element element)
public <T> T extractAnnotationParameter(Element element, String methodName)
public DeclaredType extractAnnotationClassParameter(Element element)
public String getTarget()
public String actionName()
public static String annotationName(Class<? extends Annotation> annotation)
public String annotationName()
public void printAnnotationError(Element annotatedElement, String message)
message
- if the string contains a %s, it will be replaced with the
annotation name (ex: @Override)Copyright © 2010-2015. All Rights Reserved.