public class ClassDescription extends Object
ClassDescription
is describing the found annotations
of a class.
Its basically used as a wrapper to hold all the various annotations
found in a class. This description only contains the annotations
found in the current class, but not in any superclass.
The annotations are available as descriptions.Constructor and Description |
---|
ClassDescription(Class<?> describedClass,
String source)
Create a new class description
|
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractDescription desc)
Add a new description
|
ClassDescription |
clone() |
Class<?> |
getDescribedClass()
Get the associated class.
|
<T extends AbstractDescription> |
getDescription(Class<T> descType)
Get the first description of that type
|
<T extends AbstractDescription> |
getDescriptions(Class<T> descType)
Get all descriptions of that type.
|
String |
getSource()
Get the location information like the source file etc.
|
String |
toString() |
public Class<?> getDescribedClass()
public String getSource()
public void add(AbstractDescription desc)
public <T extends AbstractDescription> List<T> getDescriptions(Class<T> descType)
descType
- The description class.public <T extends AbstractDescription> T getDescription(Class<T> descType)
descType
- The description classnull
public ClassDescription clone()
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.