public abstract class AnnotationProcessorIdentifiable<T extends Element> extends Object implements Identifiable<T>
Modifier and Type | Field and Description |
---|---|
protected List<Component> |
components |
protected Elements |
elements |
protected T |
innerElement |
protected Types |
types |
Constructor and Description |
---|
AnnotationProcessorIdentifiable(T element,
Types types,
Elements elements,
List<Component> components) |
Modifier and Type | Method and Description |
---|---|
Type |
asType() |
TypeMirror |
asTypeMirror() |
boolean |
equals(Object o) |
<A extends Annotation> |
getAnnotation(Class<A> aClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
|
<T> T |
getAnnotationFieldValue(Class<? extends Annotation> anAnnotation,
String annotationField)
Returns the content of a field for a given annotation.
|
List<? extends AnnotationMirror> |
getAnnotationMirrors()
Returns the annotations that are directly present on this element.
|
String |
getJavaDocParameterSummary(String paramName) |
String |
getJavaDocSummary() |
String |
getJavaDocTagContent(String tagName) |
String |
getName() |
String |
getThrowsComment(String exceptionClassName)
Returns the comment for the given exception class name.
|
List<Type> |
getTypeArguments() |
List<Type> |
getXmlDeclaredChilds() |
boolean |
hasAnnotation(Class<? extends Annotation> aClazz)
Return true if the element has the annotation.
|
int |
hashCode() |
boolean |
hasJavaDocTag(String tagName)
Checks if the element contains the specified tag in this javadoc
comments.
|
boolean |
hasTypeArguments() |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isReservedIdentifier()
Returns whether the variable name is a reserved identifier or not
|
boolean |
isStatic() |
T |
unwrap() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
accept
public T unwrap()
unwrap
in interface Identifiable<T extends Element>
public TypeMirror asTypeMirror()
asTypeMirror
in interface Identifiable<T extends Element>
public List<? extends AnnotationMirror> getAnnotationMirrors()
Annotable
getAnnotationMirrors
in interface Annotable
public <A extends Annotation> A getAnnotation(Class<A> aClass)
Annotable
getAnnotation
in interface Annotable
A
- the annotation typeaClass
- the Class object corresponding to the annotation typepublic String getName()
getName
in interface Identifiable<T extends Element>
public boolean isPublic()
isPublic
in interface Accessible
public boolean isPrivate()
isPrivate
in interface Accessible
public boolean isProtected()
isProtected
in interface Accessible
public boolean isAbstract()
isAbstract
in interface Accessible
public boolean isFinal()
isFinal
in interface Accessible
public boolean isStatic()
isStatic
in interface Accessible
public List<Type> getTypeArguments()
getTypeArguments
in interface Generifiable
public List<Type> getXmlDeclaredChilds()
getXmlDeclaredChilds
in interface Generifiable
public boolean hasTypeArguments()
hasTypeArguments
in interface Generifiable
public String getJavaDocSummary()
getJavaDocSummary
in interface Documentable
public boolean hasJavaDocTag(String tagName)
Documentable
hasJavaDocTag
in interface Documentable
tagName
- The name of the javadoc tag to checkpublic String getJavaDocTagContent(String tagName)
getJavaDocTagContent
in interface Documentable
public String getJavaDocParameterSummary(String paramName)
getJavaDocParameterSummary
in interface Documentable
public String getThrowsComment(String exceptionClassName)
Documentable
getThrowsComment
in interface Documentable
public Type asType()
asType
in interface Identifiable<T extends Element>
public boolean isReservedIdentifier()
Identifiable
isReservedIdentifier
in interface Identifiable<T extends Element>
public boolean hasAnnotation(Class<? extends Annotation> aClazz)
Annotable
hasAnnotation
in interface Annotable
aClazz
- Annotation Classpublic <T> T getAnnotationFieldValue(Class<? extends Annotation> anAnnotation, String annotationField)
annotationField
within the
anAnnotation
is Class or Class[]. Use:
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.