|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Class es 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 ConstructorParameter s that have an attribute of the specified class. |
Collection |
getConstructors(Class attributeClass)
Gets a Collection of the Constructor s that have an attribute of the specified class. |
Collection |
getFields(Class attributeClass)
Gets a Collection of the Field s that have an attribute of the specified class. |
Collection |
getMethodParameters(Class attributeClass)
Gets a Collection of the MethodParameter s that have an attribute of the specified class. |
Collection |
getMethods(Class attributeClass)
Gets a Collection of the Method s that have an attribute of the specified class. |
Collection |
getMethodsReturning(Class attributeClass)
Gets a Collection of the Method s 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)
Class
es that have an attribute of the specified class.
The Collection contains the classes (Class).
public Collection getMethods(Class attributeClass)
Method
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
public Collection getMethodsReturning(Class attributeClass)
Method
s whose return value has an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
public Collection getFields(Class attributeClass)
Field
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Field).
public Collection getConstructors(Class attributeClass)
Constructor
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Constructor).
public Collection getConstructorParameters(Class attributeClass)
ConstructorParameter
s that have an attribute of the specified class.
The Collection contains the methods (AttributeIndex.ConstructorParameter
).
public Collection getMethodParameters(Class attributeClass)
MethodParameter
s 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 |