com.googlecode.androidannotations.helper
Class TargetAnnotationHelper
java.lang.Object
com.googlecode.androidannotations.helper.AnnotationHelper
com.googlecode.androidannotations.helper.TargetAnnotationHelper
- All Implemented Interfaces:
- HasTarget
- Direct Known Subclasses:
- IdAnnotationHelper, RestAnnotationHelper
public class TargetAnnotationHelper
- extends AnnotationHelper
- implements HasTarget
Constructor Summary |
TargetAnnotationHelper(javax.annotation.processing.ProcessingEnvironment processingEnv,
java.lang.Class<? extends java.lang.annotation.Annotation> target)
|
Methods inherited from class com.googlecode.androidannotations.helper.AnnotationHelper |
findAnnotationMirror, getElementUtils, getTypeUtils, isAbstract, isAnnotation, isFinal, isInterface, isPrivate, isSubtype, isSubtype, isSynchronized, 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(javax.annotation.processing.ProcessingEnvironment processingEnv,
java.lang.Class<? extends java.lang.annotation.Annotation> target)
extractAnnotationValue
public <T> T extractAnnotationValue(javax.lang.model.element.Element element)
getTarget
public java.lang.Class<? extends java.lang.annotation.Annotation> getTarget()
- Specified by:
getTarget
in interface HasTarget
actionName
public java.lang.String actionName()
annotationName
public static java.lang.String annotationName(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
annotationName
public java.lang.String annotationName()
printAnnotationError
public void printAnnotationError(javax.lang.model.element.Element annotatedElement,
java.lang.String message)
- Parameters:
message
- if the string contains a %s, it will be replaced with the
annotation name (ex: @Override)
printAnnotationWarning
public void printAnnotationWarning(javax.lang.model.element.Element annotatedElement,
java.lang.String message)
- Parameters:
message
- if the string contains a %s, it will be replaced with the
annotation name (ex: @Override)
Copyright © 2010-2012. All Rights Reserved.