public class TargetAnnotationHelper extends AnnotationHelper
DEFAULT_FIELD_NAME_RESNAME, DEFAULT_FIELD_NAME_VALUE
Constructor and Description |
---|
TargetAnnotationHelper(javax.annotation.processing.ProcessingEnvironment processingEnv,
java.lang.String annotationName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
actionName() |
java.lang.String |
annotationName() |
static java.lang.String |
annotationName(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
static java.lang.String |
annotationName(java.lang.String annotationName) |
javax.lang.model.type.DeclaredType |
extractAnnotationClassParameter(javax.lang.model.element.Element element) |
<T> T |
extractAnnotationParameter(javax.lang.model.element.Element element,
java.lang.String methodName) |
<T> T |
extractAnnotationValueParameter(javax.lang.model.element.Element element) |
java.lang.String |
getTarget() |
void |
printAnnotationError(javax.lang.model.element.Element annotatedElement,
java.lang.String message) |
void |
printAnnotationWarning(javax.lang.model.element.Element annotatedElement,
java.lang.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(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String annotationName)
public <T> T extractAnnotationValueParameter(javax.lang.model.element.Element element)
public <T> T extractAnnotationParameter(javax.lang.model.element.Element element, java.lang.String methodName)
public javax.lang.model.type.DeclaredType extractAnnotationClassParameter(javax.lang.model.element.Element element)
public java.lang.String getTarget()
public java.lang.String actionName()
public static java.lang.String annotationName(java.lang.String annotationName)
public static java.lang.String annotationName(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public java.lang.String annotationName()
public void printAnnotationError(javax.lang.model.element.Element annotatedElement, java.lang.String message)
message
- if the string contains a %s, it will be replaced with the
annotation name (ex: @Override)public void printAnnotationWarning(javax.lang.model.element.Element annotatedElement, java.lang.String message)
message
- if the string contains a %s, it will be replaced with the
annotation name (ex: @Override)Copyright © 2010-2014. All Rights Reserved.