org.reflext.apt
Class JavaxLangAnnotationModel<E>

java.lang.Object
  extended by org.reflext.apt.JavaxLangAnnotationModel<E>
All Implemented Interfaces:
AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>
Direct Known Subclasses:
JavaxLangMethodAnnotationModel, JavaxLangTypeAnnotationModel

public abstract class JavaxLangAnnotationModel<E>
extends java.lang.Object
implements AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
JavaxLangAnnotationModel()
           
 
Method Summary
 java.lang.String getAnnotationParameterName(javax.lang.model.element.ExecutableElement parameter)
           
 java.util.Collection<javax.lang.model.element.ExecutableElement> getAnnotationParameters(javax.lang.model.element.AnnotationMirror annotation)
           
 java.lang.Object getAnnotationParameterType(javax.lang.model.element.ExecutableElement parameter)
           
 java.util.List<?> getAnnotationParameterValue(javax.lang.model.element.AnnotationMirror annotation, javax.lang.model.element.ExecutableElement parameter)
           
 java.lang.Object getAnnotationType(javax.lang.model.element.AnnotationMirror annotationMirror)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.reflext.spi.model.AnnotationModel
getDeclaredAnnotation, resolveDeclaredAnnotation
 

Constructor Detail

JavaxLangAnnotationModel

public JavaxLangAnnotationModel()
Method Detail

getAnnotationType

public java.lang.Object getAnnotationType(javax.lang.model.element.AnnotationMirror annotationMirror)
Specified by:
getAnnotationType in interface AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>

getAnnotationParameters

public java.util.Collection<javax.lang.model.element.ExecutableElement> getAnnotationParameters(javax.lang.model.element.AnnotationMirror annotation)
Specified by:
getAnnotationParameters in interface AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>

getAnnotationParameterName

public java.lang.String getAnnotationParameterName(javax.lang.model.element.ExecutableElement parameter)
Specified by:
getAnnotationParameterName in interface AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>

getAnnotationParameterType

public java.lang.Object getAnnotationParameterType(javax.lang.model.element.ExecutableElement parameter)
Specified by:
getAnnotationParameterType in interface AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>

getAnnotationParameterValue

public java.util.List<?> getAnnotationParameterValue(javax.lang.model.element.AnnotationMirror annotation,
                                                     javax.lang.model.element.ExecutableElement parameter)
Specified by:
getAnnotationParameterValue in interface AnnotationModel<java.lang.Object,E,javax.lang.model.element.AnnotationMirror,javax.lang.model.element.ExecutableElement>


Copyright © 2010 eXo Platform SAS. All Rights Reserved.