Interface MethodUtil
public interface MethodUtil
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionfillMethods(Method[] methods, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... _classes) static MethodfindMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... paramClasses) static Collection<Method>getAllMethod(Class<?> _class) Get all public methods current classstatic Collection<Method>getAllMethod(Class<?> _class, Class<?>... _params) Get all public methods current classstatic Collection<Method>getAllMethod(Class<?> _class, org.brijframework.util.support.ReflectionAccess _accessLevel) Get methods of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultgetAllOverloadMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel) Get all overloaded method of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultgetAllOverrideMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Object... _param) Get all overloaded method of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic StringgetFieldName(Method _method) static MethodgetMethod(Class<?> _class, String _method, int params, org.brijframework.util.support.ReflectionAccess _accessLevel) static MethodGet public method of current classstatic MethodGet method current classstatic MethodgetMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... _classes) Get field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic MethodgetMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Object... _param) Get field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,defaultstatic Booleanstatic Booleanstatic booleanstatic BooleanisMethodExists(Object _object, String _methodName) static booleanstatic booleanmatchInterface(Class<?> cls, Class<?> cld) static booleanmatchSuperClass(Class<?> cls, Class<?> cld)
-
Method Details
-
fillMethods
-
getMethod
Get public method of current class- Parameters:
_class- ,_params- Returns:
- Method
-
getAllMethod
Get all public methods current class- Parameters:
_class- ,_params- Returns:
- list
-
getMethod
Get method current class- Parameters:
_class- ,_method,_params- Returns:
- Method
-
getMethod
static Method getMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... _classes) Get field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class- ,_method,_accessLevel,_param- Returns:
- Field
-
getMethod
static Method getMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Object... _param) Get field current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class- ,_method,_accessLevel,_param- Returns:
- Field
-
getAllMethod
Get all public methods current class- Parameters:
_class-- Returns:
- List
-
getAllMethod
static Collection<Method> getAllMethod(Class<?> _class, org.brijframework.util.support.ReflectionAccess _accessLevel) Get methods of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class- ,_method,_accessLevel,_classes- Returns:
- List
-
getAllOverloadMethod
static List<Method> getAllOverloadMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel) Get all overloaded method of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class- ,_method,_accessLevel,_classes- Returns:
- List
-
getMethod
-
getAllOverrideMethod
static List<Method> getAllOverrideMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Object... _param) Get all overloaded method of current class with following condition :
PRIVATE can access all protected , public , private , default field
PROTECTED can access only protected , public
PUBLIC can access only public
DEFAULT can access only protected , public ,default- Parameters:
_class- ,_method,_accessLevel,_classes- Returns:
- List
-
hasSetter
-
hasGetter
-
getFieldName
-
isGetter
-
isSetter
-
isMethodExists
-
matchInterface
-
matchSuperClass
-
findMethod
-