|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.runtime.reflexion.ClassUtility
public class ClassUtility
Adds capabilities to the standard reflexion engine.
| Constructor Summary | |
|---|---|
ClassUtility()
|
|
| Method Summary | |
|---|---|
static java.lang.reflect.Field |
getField(java.lang.Class<?> initialMetaClass,
java.lang.String attributeName)
Search an attribute in the specified class or in its parent class. |
static java.lang.reflect.Method |
getMethod(java.lang.Class<?> initialMetaClass,
java.lang.String methodName,
java.lang.Class<?>[] parameterTypes)
Search a method in the specified class or in its parent class. |
static java.util.List<Property> |
getProperties(java.lang.Class<?> typeDescriptor)
Find all existing public properties for the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtility()
| Method Detail |
|---|
public static java.lang.reflect.Field getField(java.lang.Class<?> initialMetaClass,
java.lang.String attributeName)
throws java.lang.NoSuchFieldException
initialMetaClass - The type descriptor of the base class to use for the search.attributeName - The name of the attribute to find.
java.lang.NoSuchFieldException - Thrown if the attribute does not exists.
public static java.lang.reflect.Method getMethod(java.lang.Class<?> initialMetaClass,
java.lang.String methodName,
java.lang.Class<?>[] parameterTypes)
throws java.lang.NoSuchMethodException
initialMetaClass - The type descriptor of the base class to use for the search.methodName - The name of the method to find.parameterTypes - The type descriptors of the method parameters.
java.lang.NoSuchMethodException - Thrown if the method does not exists.public static java.util.List<Property> getProperties(java.lang.Class<?> typeDescriptor)
typeDescriptor - The type to use for property search.
Property instance.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||