|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.attributes.AttributeIndex
An index providing a list of elements with given attributes. This
requires that the attribute is Indexed and that the
attribute indexer tool has been run on the jar file containing the
classes.
| Nested Class Summary | |
static class |
AttributeIndex.ConstructorParameter
A constructor parameter. |
static class |
AttributeIndex.MethodParameter
Reference to a method parameter. |
| Constructor Summary | |
AttributeIndex(ClassLoader cl)
Creates a new AttributeIndex for the given ClassLoader. |
|
| Method Summary | |
Collection |
getClasses(Class attributeClass)
Gets a Collection of the Classes that have an attribute of the specified class. |
Collection |
getClassesWithAttribute(Class attributeClass)
Deprecated. Use the getClasses(Class) method instead. |
Collection |
getClassesWithAttribute(String attributeClass)
Deprecated. Use the getClasses(Class) method instead. |
Collection |
getConstructorParameters(Class attributeClass)
Gets a Collection of the ConstructorParameters that have an attribute of the specified class. |
Collection |
getConstructors(Class attributeClass)
Gets a Collection of the Constructors that have an attribute of the specified class. |
Collection |
getFields(Class attributeClass)
Gets a Collection of the Fields that have an attribute of the specified class. |
Collection |
getMethodParameters(Class attributeClass)
Gets a Collection of the MethodParameters that have an attribute of the specified class. |
Collection |
getMethods(Class attributeClass)
Gets a Collection of the Methods that have an attribute of the specified class. |
Collection |
getMethodsReturning(Class attributeClass)
Gets a Collection of the Methods whose return value has an attribute of the specified class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeIndex(ClassLoader cl)
throws Exception
| Method Detail |
public Collection getClassesWithAttribute(String attributeClass)
public Collection getClassesWithAttribute(Class attributeClass)
public Collection getClasses(Class attributeClass)
Classes that have an attribute of the specified class.
The Collection contains the classes (Class).
public Collection getMethods(Class attributeClass)
Methods that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
public Collection getMethodsReturning(Class attributeClass)
Methods whose return value has an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
public Collection getFields(Class attributeClass)
Fields that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Field).
public Collection getConstructors(Class attributeClass)
Constructors that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Constructor).
public Collection getConstructorParameters(Class attributeClass)
ConstructorParameters that have an attribute of the specified class.
The Collection contains the methods (AttributeIndex.ConstructorParameter).
public Collection getMethodParameters(Class attributeClass)
MethodParameters that have an attribute of the specified class.
The Collection contains the methods (AttributeIndex.MethodParameter).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||