Interface MethodUtil


public interface MethodUtil
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static List<Method>
    fillMethods(Method[] methods, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... _classes)
     
    static Method
    findMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... paramClasses)
     
    getAllMethod(Class<?> _class)
    Get all public methods current class
    getAllMethod(Class<?> _class, Class<?>... _params)
    Get all public methods current class
    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
    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
    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
    static String
     
    static Method
    getMethod(Class<?> _class, String _method, int params, org.brijframework.util.support.ReflectionAccess _accessLevel)
     
    static Method
    getMethod(Class<?> _class, String _method, Class<?>... _classes)
    Get public method of current class
    static Method
    getMethod(Class<?> _class, String _method, Object... _param)
    Get method current class
    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
    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
    static Boolean
    hasGetter(Class<?> _class)
     
    static Boolean
    hasSetter(Class<?> _class)
     
    static boolean
    isGetter(Method _method)
     
    static Boolean
    isMethodExists(Object _object, String _methodName)
     
    static boolean
    isSetter(Method _method)
     
    static boolean
    matchInterface(Class<?> cls, Class<?> cld)
     
    static boolean
    matchSuperClass(Class<?> cls, Class<?> cld)
     
  • Method Details

    • fillMethods

      static List<Method> fillMethods(Method[] methods, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... _classes)
    • getMethod

      static Method getMethod(Class<?> _class, String _method, Class<?>... _classes)
      Get public method of current class
      Parameters:
      _class - ,_params
      Returns:
      Method
    • getAllMethod

      static Collection<Method> getAllMethod(Class<?> _class, Class<?>... _params)
      Get all public methods current class
      Parameters:
      _class - ,_params
      Returns:
      list
    • getMethod

      static Method getMethod(Class<?> _class, String _method, Object... _param)
      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

      static Collection<Method> getAllMethod(Class<?> _class)
      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

      static Method getMethod(Class<?> _class, String _method, int params, org.brijframework.util.support.ReflectionAccess _accessLevel)
    • 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

      static Boolean hasSetter(Class<?> _class)
    • hasGetter

      static Boolean hasGetter(Class<?> _class)
    • getFieldName

      static String getFieldName(Method _method)
    • isGetter

      static boolean isGetter(Method _method)
    • isSetter

      static boolean isSetter(Method _method)
    • isMethodExists

      static Boolean isMethodExists(Object _object, String _methodName)
    • matchInterface

      static boolean matchInterface(Class<?> cls, Class<?> cld)
    • matchSuperClass

      static boolean matchSuperClass(Class<?> cls, Class<?> cld)
    • findMethod

      static Method findMethod(Class<?> _class, String _method, org.brijframework.util.support.ReflectionAccess _accessLevel, Class<?>... paramClasses)