|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
public class AnnotatedElementImpl
Implementation of an annotated element
| Constructor Summary | |
|---|---|
AnnotatedElementImpl(String name)
|
|
| Method Summary | |
|---|---|
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. |
protected void |
print(StringBuffer sb)
|
String |
shortDesc()
Construct and return a short description name that can be used to display the instance value |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedElementImpl(String name)
| Method Detail |
|---|
public String getName()
AnnotatedElementClass.getName()
getName in interface AnnotatedElementpublic Collection<AnnotationModel> getAnnotations()
AnnotatedElement
getAnnotations in interface AnnotatedElementpublic AnnotationModel getAnnotation(String name)
AnnotatedElement
getAnnotation in interface AnnotatedElementname - the annotation name
public String toString()
toString in class Objectpublic String shortDesc()
AnnotatedElement
shortDesc in interface AnnotatedElementprotected void print(StringBuffer sb)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||