| org.ddsteps.mock.ReflectionUtils
All known Subclasses: org.ddsteps.mock.ReflectionUtilsBean,
ReflectionUtils | public interface ReflectionUtils (Code) | | Reflection Utils interface. Useful when you want to mock away reflections utils.
author: adam version: $Id: ReflectionUtils.java,v 1.1 2005/12/03 12:51:40 adamskogman Exp $ |
Method Summary | |
abstract Set | findAllAbstractMethods(Class clazz) Find all unimplemented methods, i.e. | abstract Set | findAllImplementedMethods(Class clazz) Finds all implemented methods in the class and all superclasses.
Parameters: clazz - The class to search. | abstract Set | findAllMethods(Class clazz) Find all methods in a class. | abstract Set | findAllMethodsInSuperclasses(Class clazz) Finds ALL methods (implemented or abstract, not unimplemented interface methods) in superclasses of the class.
Parameters: clazz - The class whose superclasses are searched. | abstract Set | findInterfaceMethods(Class clazz) Find all methods in all interfaces this class implements (superclasses too).
Parameters: clazz - The class whose interfaces to search. | abstract Set | findLocalImplementedMethods(Class clazz) Find all methods implemended in the specific class, not in any superclass of that class.
Parameters: clazz - The class to search. | abstract Method | findMethodByName(Class clazz, String methodName) Find ONE method based on the name. | abstract boolean | isFinal(Method method) Tests if a method is final.
Parameters: method - The method, not null. | abstract boolean | isNative(Method method) Tests if a method is native.
Parameters: method - The method, not null. | abstract boolean | isOverride(Method possibleOverride, Method reference) Check if a method is an override of a reference method. |
findAllAbstractMethods | abstract Set findAllAbstractMethods(Class clazz)(Code) | | Find all unimplemented methods, i.e. abstarct w/o implementation or interface method w/o implementation.
Parameters: clazz - The class to search. (@link Set) of (@link Method). Not null. |
findAllImplementedMethods | abstract Set findAllImplementedMethods(Class clazz)(Code) | | Finds all implemented methods in the class and all superclasses.
Parameters: clazz - The class to search. (@link Set) of (@link Method). Not null. |
findAllMethods | abstract Set findAllMethods(Class clazz)(Code) | | Find all methods in a class. Includes abstract methods, but NOT unimplemented interface methods.
Parameters: clazz - The class to search. (@link Set) of (@link Method). Not null. |
findAllMethodsInSuperclasses | abstract Set findAllMethodsInSuperclasses(Class clazz)(Code) | | Finds ALL methods (implemented or abstract, not unimplemented interface methods) in superclasses of the class.
Parameters: clazz - The class whose superclasses are searched. (@link Set) of (@link Method). Not null. |
findInterfaceMethods | abstract Set findInterfaceMethods(Class clazz)(Code) | | Find all methods in all interfaces this class implements (superclasses too).
Parameters: clazz - The class whose interfaces to search. (@link Set) of (@link Method). Not null. |
findLocalImplementedMethods | abstract Set findLocalImplementedMethods(Class clazz)(Code) | | Find all methods implemended in the specific class, not in any superclass of that class.
Parameters: clazz - The class to search. (@link Set) of (@link Method). Not null. |
isFinal | abstract boolean isFinal(Method method)(Code) | | Tests if a method is final.
Parameters: method - The method, not null. True if final |
isNative | abstract boolean isNative(Method method)(Code) | | Tests if a method is native.
Parameters: method - The method, not null. True if native |
isOverride | abstract boolean isOverride(Method possibleOverride, Method reference)(Code) | | Check if a method is an override of a reference method.
Parameters: possibleOverride - Parameters: reference - True if it is an override. |
|
|