Class ModifierSupport

    • Method Detail

      • isPublic

        public static boolean isPublic​(Class<?> clazz)
        Determine if the supplied class is public.
        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is public
        See Also:
        Modifier.isPublic(int)
      • isPublic

        public static boolean isPublic​(Member member)
        Determine if the supplied member is public.
        Parameters:
        member - the member to check; never null
        Returns:
        true if the member is public
        See Also:
        Modifier.isPublic(int)
      • isPrivate

        public static boolean isPrivate​(Class<?> clazz)
        Determine if the supplied class is private.
        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is private
        See Also:
        Modifier.isPrivate(int)
      • isPrivate

        public static boolean isPrivate​(Member member)
        Determine if the supplied member is private.
        Parameters:
        member - the member to check; never null
        Returns:
        true if the member is private
        See Also:
        Modifier.isPrivate(int)
      • isNotPrivate

        public static boolean isNotPrivate​(Class<?> clazz)
        Determine if the supplied class is not private.

        In other words this method will return true for classes declared as public, protected, or package private and false for classes declared as private.

        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is not private
        See Also:
        Modifier.isPublic(int), Modifier.isProtected(int), Modifier.isPrivate(int)
      • isNotPrivate

        public static boolean isNotPrivate​(Member member)
        Determine if the supplied member is not private.

        In other words this method will return true for members declared as public, protected, or package private and false for members declared as private.

        Parameters:
        member - the member to check; never null
        Returns:
        true if the member is not private
        See Also:
        Modifier.isPublic(int), Modifier.isProtected(int), Modifier.isPrivate(int)
      • isAbstract

        public static boolean isAbstract​(Class<?> clazz)
        Determine if the supplied class is abstract.
        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is abstract
        See Also:
        Modifier.isAbstract(int)
      • isAbstract

        public static boolean isAbstract​(Member member)
        Determine if the supplied member is abstract.
        Parameters:
        member - the class to check; never null
        Returns:
        true if the member is abstract
        See Also:
        Modifier.isAbstract(int)
      • isStatic

        public static boolean isStatic​(Class<?> clazz)
        Determine if the supplied class is static.
        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is static
        See Also:
        Modifier.isStatic(int)
      • isStatic

        public static boolean isStatic​(Member member)
        Determine if the supplied member is static.
        Parameters:
        member - the member to check; never null
        Returns:
        true if the member is static
        See Also:
        Modifier.isStatic(int)
      • isNotStatic

        public static boolean isNotStatic​(Class<?> clazz)
        Determine if the supplied class is not static.
        Parameters:
        clazz - the class to check; never null
        Returns:
        true if the class is not static
        See Also:
        Modifier.isStatic(int)
      • isNotStatic

        public static boolean isNotStatic​(Member member)
        Determine if the supplied member is not static.
        Parameters:
        member - the member to check; never null
        Returns:
        true if the member is not static
        See Also:
        Modifier.isStatic(int)