org.androidannotations.helper
Class TargetAnnotationHelper
java.lang.Object
org.androidannotations.helper.AnnotationHelper
org.androidannotations.helper.TargetAnnotationHelper
- Direct Known Subclasses:
- IdAnnotationHelper, RestAnnotationHelper
public class TargetAnnotationHelper
- extends AnnotationHelper
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 |
TargetAnnotationHelper
public TargetAnnotationHelper(ProcessingEnvironment processingEnv,
String annotationName)
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.