Class AccessibilityPredicate.NotPrivateAccessibilityPredicate

    • Constructor Detail

      • NotPrivateAccessibilityPredicate

        private NotPrivateAccessibilityPredicate()
    • 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 the class access modifier is not private, and 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 the method/constructor access modifier is not private, and 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 the field access modifier is not private, and false, otherwise
      • isAccessible

        private boolean isAccessible​(int mods)
        Returns true if the Modifier value does not have private set.
        Parameters:
        mods - the modifiers value
        Returns:
        true if the private bit is not set, false otherwise