org.androidannotations.helper
Class TargetAnnotationHelper

java.lang.Object
  extended by org.androidannotations.helper.AnnotationHelper
      extended by org.androidannotations.helper.TargetAnnotationHelper
Direct Known Subclasses:
IdAnnotationHelper, RestAnnotationHelper

public class TargetAnnotationHelper
extends AnnotationHelper


Constructor Summary
TargetAnnotationHelper(ProcessingEnvironment processingEnv, String annotationName)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.androidannotations.helper.AnnotationHelper
actionName, defaultResIdValue, defaultResName, enclosingElementHasEnhancedComponentAnnotation, extractAnnotationClassArrayParameter, extractAnnotationClassParameter, extractAnnotationClassParameter, extractAnnotationFieldRefs, extractAnnotationParameter, extractAnnotationResIdValueParameter, extractAnnotationResNameParameter, extractAnnotationResources, extractElementName, findAnnotationMirror, getElementUtils, getTypeUtils, hasOneOfClassAnnotations, hasOneOfClassAnnotations, isAbstract, isAnnotation, isFinal, isInterface, isPrivate, isPublic, isSubtype, isSubtype, isSynchronized, isTopLevel, printAnnotationError, printAnnotationMessage, printAnnotationWarning, printError, typeElementFromQualifiedName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetAnnotationHelper

public TargetAnnotationHelper(ProcessingEnvironment processingEnv,
                              String annotationName)
Method Detail

extractAnnotationValueParameter

public <T> T extractAnnotationValueParameter(Element element)

extractAnnotationParameter

public <T> T extractAnnotationParameter(Element element,
                                        String methodName)

extractAnnotationClassParameter

public DeclaredType extractAnnotationClassParameter(Element element)

getTarget

public String getTarget()

actionName

public String actionName()

annotationName

public static String annotationName(String annotationName)

annotationName

public static String annotationName(Class<? extends Annotation> annotation)

annotationName

public String annotationName()

printAnnotationError

public void printAnnotationError(Element annotatedElement,
                                 String message)
Parameters:
message - if the string contains a %s, it will be replaced with the annotation name (ex: @Override)

printAnnotationWarning

public void printAnnotationWarning(Element annotatedElement,
                                   String message)
Parameters:
message - if the string contains a %s, it will be replaced with the annotation name (ex: @Override)


Copyright © 2010-2014. All Rights Reserved.