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