|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ideanest.attributes.Attributes com.ideanest.attributes.impl.AttributesImpl
Field Summary | |
static java.lang.String |
COALESCED_FILENAME
|
static java.lang.String |
FILENAME_SUFFIX
|
Fields inherited from class com.ideanest.attributes.Attributes |
DEFAULT_IMPL_CLASS_NAME, IMPL_CLASS_NAME_PROPKEY |
Constructor Summary | |
AttributesImpl()
|
Method Summary | |
static void |
appendParamTypes(java.lang.StringBuffer buf,
java.lang.Class[] paramTypes)
|
Bundle |
get(java.lang.Class klass)
Get the attributes bundle for the given class. |
Bundle |
get(java.lang.reflect.Constructor constructor)
Get the attributes bundle for the given constructor. |
Bundle |
get(java.lang.reflect.Field field)
Get the attributes bundle for the given field. |
Bundle |
get(java.lang.reflect.Method method)
Get the attributes bundle for the given method. |
Bundle |
getClass(java.lang.String className,
java.lang.ClassLoader classLoader)
Get the bundle of attributes for the given class. |
Bundle |
getConstructor(java.lang.String className,
java.lang.String constructorSignature,
java.lang.ClassLoader classLoader)
Get the bundle of attributes for the given constructor. |
Bundle |
getField(java.lang.String className,
java.lang.String fieldName,
java.lang.ClassLoader classLoader)
The the bundle of attributes for the given field. |
Bundle |
getMethod(java.lang.String className,
java.lang.String methodSignature,
java.lang.ClassLoader classLoader)
Get the bundle of attributes for the given method. |
Methods inherited from class com.ideanest.attributes.Attributes |
getInstance |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COALESCED_FILENAME
public static final java.lang.String FILENAME_SUFFIX
Constructor Detail |
public AttributesImpl()
Method Detail |
public static void appendParamTypes(java.lang.StringBuffer buf, java.lang.Class[] paramTypes)
public Bundle get(java.lang.Class klass)
Attributes
get
in class Attributes
klass
- the class for which attributes are needed
public Bundle get(java.lang.reflect.Constructor constructor)
Attributes
get
in class Attributes
constructor
- the constructor for which attributes are needed
public Bundle get(java.lang.reflect.Field field)
Attributes
get
in class Attributes
field
- the field for which attributes are needed
public Bundle get(java.lang.reflect.Method method)
Attributes
get
in class Attributes
method
- the method for which attributes are needed
public Bundle getClass(java.lang.String className, java.lang.ClassLoader classLoader)
Attributes
getClass
in class Attributes
className
- the fully qualified name of the classclassLoader
- the class loader to use when fetching attribute descriptors, if null
use the thread's context class loader
public Bundle getConstructor(java.lang.String className, java.lang.String constructorSignature, java.lang.ClassLoader classLoader)
Attributes
"java.lang.Thread.<init>(java.lang.Runnable,java.lang.String)"
.
getConstructor
in class Attributes
className
- the fully qualified name of the constructor's classconstructorSignature
- the parameter types of the desired constructorclassLoader
- the class loader to use when fetching attribute descriptors, if null
use the thread's context class loader
public Bundle getField(java.lang.String className, java.lang.String fieldName, java.lang.ClassLoader classLoader)
Attributes
getField
in class Attributes
className
- the fully qualified name of the field's classfieldName
- the name of the desired fieldclassLoader
- the class loader to use when fetching attribute descriptors, if null
use the thread's context class loader
public Bundle getMethod(java.lang.String className, java.lang.String methodSignature, java.lang.ClassLoader classLoader)
Attributes
Class.getName()
. The parameter types are
separated by commas, with no spaces. The return type is not listed. Methods with
no parameters must include an empty parameter list, '()'.
getMethod
in class Attributes
className
- the fully qualified name of the method's classmethodSignature
- the name and parameter types of the desired methodclassLoader
- the class loader to use when fetching attribute descriptors, if null
use the thread's context class loader
Attributes.getClass(String,ClassLoader)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |