Enum ModifierMatcher.Mode

    • Enum Constant Detail

      • PUBLIC

        public static final ModifierMatcher.Mode PUBLIC
        Matches an element that is considered public.
      • PROTECTED

        public static final ModifierMatcher.Mode PROTECTED
        Matches an element that is considered protected.
      • PRIVATE

        public static final ModifierMatcher.Mode PRIVATE
        Matches an element that is considered private.
      • FINAL

        public static final ModifierMatcher.Mode FINAL
        Matches an element that is considered final.
      • STATIC

        public static final ModifierMatcher.Mode STATIC
        Matches an element that is considered static.
      • SYNCHRONIZED

        public static final ModifierMatcher.Mode SYNCHRONIZED
        Matches an element that is considered synchronized.
      • NATIVE

        public static final ModifierMatcher.Mode NATIVE
        Matches an element that is considered native.
      • STRICT

        public static final ModifierMatcher.Mode STRICT
        Matches an element that is considered strict.
      • VAR_ARGS

        public static final ModifierMatcher.Mode VAR_ARGS
        Matches an element that is considered to be varargs.
      • SYNTHETIC

        public static final ModifierMatcher.Mode SYNTHETIC
        Matches an element that is considered synthetic.
      • BRIDGE

        public static final ModifierMatcher.Mode BRIDGE
        Matches an element that is considered a bridge method.
      • ABSTRACT

        public static final ModifierMatcher.Mode ABSTRACT
        Matches an element that is considered abstract.
      • INTERFACE

        public static final ModifierMatcher.Mode INTERFACE
        Matches a type that is considered an interface.
      • ANNOTATION

        public static final ModifierMatcher.Mode ANNOTATION
        Matches a type that is considered an annotation.
      • ENUMERATION

        public static final ModifierMatcher.Mode ENUMERATION
        Matches a type or field for describing an enumeration.
    • Method Detail

      • values

        public static ModifierMatcher.Mode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ModifierMatcher.Mode c : ModifierMatcher.Mode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ModifierMatcher.Mode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDescription

        protected String getDescription()
        Returns the textual description of this mode.
        Returns:
        The textual description of this mode.
      • getModifiers

        protected int getModifiers()
        Returns the modifiers to match by this mode.
        Returns:
        The modifiers to match by this mode.