Class AccessibilityPredicate.PublicAccessibilityPredicate

    • Constructor Detail

      • PublicAccessibilityPredicate

        private PublicAccessibilityPredicate()
    • Method Detail

      • isAccessible

        public boolean isAccessible​(Class<?> c)
        Determines whether this AccessibilityPredicate considers a Class accessible.
        Specified by:
        isAccessible in class AccessibilityPredicate
        Parameters:
        c - the class object to check
        Returns:
        true if class is declared public, false otherwise
      • isAccessible

        public boolean isAccessible​(Executable e)
        Determines whether this AccessibilityPredicate considers a Method or Constructor accessible. Does not test the accessibility of the containing class.
        Specified by:
        isAccessible in class AccessibilityPredicate
        Parameters:
        e - the method/constructor object to check
        Returns:
        true if method/constructor is declared public, false otherwise
      • isAccessible

        public boolean isAccessible​(Field f)
        Determines whether this AccessibilityPredicate considers a Field accessible. Does not test the accessibility of the containing class.
        Specified by:
        isAccessible in class AccessibilityPredicate
        Parameters:
        f - the field object to check
        Returns:
        true if field is declared public, false otherwise
      • isAccessible

        private boolean isAccessible​(int mods)