Code example for Method

Methods: getModifiers

0
     * Helper method to read the modifier bits of the given method to determine if it is static. 
     * @param aMethod The Method to check. 
     * @return true of the method is declared static, false otherwise. 
     */ 
    public static boolean isMethodStatic(Method aMethod) {
        int aMethodModifiers = aMethod.getModifiers();
        return Modifier.isStatic(aMethodModifiers);
    } 
}