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.
addClass
private void addClass(String clazzName)
throws Exception
Add a class to the index.
addIndex
private void addIndex(Collection attributes,
Class clazz)
addIndex
private void addIndex(Collection attributes,
Constructor constructor)
addIndex
private void addIndex(Collection attributes,
Constructor ctor,
int parameter)
addIndex
private void addIndex(Collection attributes,
Field field)
addIndex
private void addIndex(Collection attributes,
Method method)
addIndex
private void addIndex(Collection attributes,
Method method,
int parameter)
addReturnIndex
private void addReturnIndex(Collection attributes,
Method method)
getClasses
public Collection getClasses(Class attributeClass)
Gets a Collection of the Class
es that have an attribute of the specified class.
The Collection contains the classes (Class).
getClassesWithAttribute
public Collection getClassesWithAttribute(Class attributeClass)
Use the getClasses(Class) method instead.
Gets a Collection of the classes that have an attribute of the specified class.
The Collection contains the class names (String).
getClassesWithAttribute
public Collection getClassesWithAttribute(String attributeClass)
Use the getClasses(Class) method instead.
Gets a Collection of the classes that have an attribute of the specified class.
The Collection contains the class names (String).
getConstructorParameters
public Collection getConstructorParameters(Class attributeClass)
getConstructors
public Collection getConstructors(Class attributeClass)
Gets a Collection of the Constructor
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Constructor).
getFields
public Collection getFields(Class attributeClass)
Gets a Collection of the Field
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Field).
getMethodParameters
public Collection getMethodParameters(Class attributeClass)
Gets a Collection of the
MethodParameter
s that have an attribute of the specified class.
The Collection contains the methods (
AttributeIndex.MethodParameter
).
getMethods
public Collection getMethods(Class attributeClass)
Gets a Collection of the Method
s that have an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
getMethodsReturning
public Collection getMethodsReturning(Class attributeClass)
Gets a Collection of the Method
s whose return value has an attribute of the specified class.
The Collection contains the methods (java.lang.reflect.Method).
loadFromURL
private void loadFromURL(URL url)
throws Exception
Load the attrs.index from a given URL.