Code example for Member

Methods: getDeclaringClass

0
        } 
        return cfields;
    } 
 
    boolean isAccessible(Member m) {
        final Class<?> declaring = m.getDeclaringClass();
        // (declaring == clazz) is just an optimization - we're calling this only from code that operates on a 
        // non-restriced class, so if the declaring class is identical to the class being inspected, then forego 
        // a potentially expensive restricted-package check. 
        return declaring == clazz || !CheckRestrictedPackage.isRestrictedClass(declaring);
    } 
 
    /** 
     * Returns all the methods in the facet. 
     * @return all the methods in the facet. 
     */ 
    Collection<Method> getMethods() {
        return membersLookup.getMethods();
    }