|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.description.ClassDescription
public class ClassDescription
A 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.
ComponentDescription
,
ServiceDescription
,
ReferenceDescription
,
PropertyDescription
Constructor Summary | |
---|---|
ClassDescription(java.lang.Class<?> describedClass,
java.lang.String source)
Create a new class description |
Method Summary | ||
---|---|---|
void |
add(AbstractDescription desc)
Add a new description |
|
ClassDescription |
clone()
|
|
java.lang.Class<?> |
getDescribedClass()
Get the associated class. |
|
|
getDescription(java.lang.Class<T> descType)
Get the first description of that type |
|
|
getDescriptions(java.lang.Class<T> descType)
Get all descriptions of that type. |
|
java.lang.String |
getSource()
Get the location information like the source file etc. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassDescription(java.lang.Class<?> describedClass, java.lang.String source)
Method Detail |
---|
public java.lang.Class<?> getDescribedClass()
public java.lang.String getSource()
public void add(AbstractDescription desc)
public <T extends AbstractDescription> java.util.List<T> getDescriptions(java.lang.Class<T> descType)
descType
- The description class.
public <T extends AbstractDescription> T getDescription(java.lang.Class<T> descType)
descType
- The description class
null
public java.lang.String toString()
toString
in class java.lang.Object
public ClassDescription clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |