org.glassfish.hk2.classmodel.reflect.impl
Class AnnotatedElementImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
- All Implemented Interfaces:
- AnnotatedElement
- Direct Known Subclasses:
- FieldModelImpl, MethodModelImpl, TypeImpl
public class AnnotatedElementImpl
- extends java.lang.Object
- implements AnnotatedElement
Implementation of an annotated element
- Author:
- Jerome Dochez
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final java.lang.String name
annotations
public final java.util.Set<AnnotationModel> annotations
AnnotatedElementImpl
public AnnotatedElementImpl(ModelBuilder tb)
getName
public java.lang.String getName()
- Description copied from interface:
AnnotatedElement
- Annotated element have a name, which vary depending on the actual
subclass type. For instance, a class annotated element's name is the
class name as obtained from
Class.getName()
- Specified by:
getName in interface AnnotatedElement
- Returns:
- the annotated element name
getAnnotations
public java.util.Collection<AnnotationModel> getAnnotations()
- Description copied from interface:
AnnotatedElement
- Returns a unmodifiable set of annotations that are present on this
annotated element.
- Specified by:
getAnnotations in interface AnnotatedElement
- Returns:
- the collection of annotations
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
shortDesc
public java.lang.String shortDesc()
- Description copied from interface:
AnnotatedElement
- Construct and return a short description name that can be used to
display the instance value
- Specified by:
shortDesc in interface AnnotatedElement
- Returns:
- a short description
print
protected void print(java.lang.StringBuffer sb)
Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.