public class AnnotatedElementImpl extends java.lang.Object implements AnnotatedElement
Modifier and Type | Field and Description |
---|---|
private java.util.List<AnnotationModel> |
annotations |
private boolean |
isApplicationClass |
private java.lang.String |
name |
Constructor and Description |
---|
AnnotatedElementImpl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAnnotation(AnnotationModel annotation) |
AnnotationModel |
getAnnotation(java.lang.String name)
Returns an annotation model if the type is annotated with the
passed annotation name
|
java.util.Collection<AnnotationModel> |
getAnnotations()
Returns a unmodifiable set of annotations that are present on this
annotated element.
|
java.lang.String |
getName()
Annotated element have a name, which vary depending on the actual
subclass type.
|
boolean |
isApplicationClass() |
protected void |
print(java.lang.StringBuffer sb) |
void |
setApplicationClass(boolean applicationClass) |
java.lang.String |
shortDesc()
Construct and return a short description name that can be used to
display the instance value
|
java.lang.String |
toString() |
private final java.lang.String name
private final java.util.List<AnnotationModel> annotations
private boolean isApplicationClass
public java.lang.String getName()
AnnotatedElement
Class.getName()
getName
in interface AnnotatedElement
void addAnnotation(AnnotationModel annotation)
public java.util.Collection<AnnotationModel> getAnnotations()
AnnotatedElement
getAnnotations
in interface AnnotatedElement
public AnnotationModel getAnnotation(java.lang.String name)
AnnotatedElement
getAnnotation
in interface AnnotatedElement
name
- the annotation namepublic boolean isApplicationClass()
public void setApplicationClass(boolean applicationClass)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String shortDesc()
AnnotatedElement
shortDesc
in interface AnnotatedElement
protected void print(java.lang.StringBuffer sb)