public class AnnotatedElementImpl extends java.lang.Object implements AnnotatedElement
| Constructor and Description |
|---|
AnnotatedElementImpl(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
print(java.lang.StringBuffer sb) |
java.lang.String |
shortDesc()
Construct and return a short description name that can be used to
display the instance value
|
java.lang.String |
toString() |
public java.lang.String getName()
AnnotatedElementClass.getName()getName in interface AnnotatedElementpublic java.util.Collection<AnnotationModel> getAnnotations()
AnnotatedElementgetAnnotations in interface AnnotatedElementpublic AnnotationModel getAnnotation(java.lang.String name)
AnnotatedElementgetAnnotation in interface AnnotatedElementname - the annotation namepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String shortDesc()
AnnotatedElementshortDesc in interface AnnotatedElementprotected void print(java.lang.StringBuffer sb)
Copyright © 2013 Oracle Corporation. All Rights Reserved.