Enum ModifierMatcher.Mode

java.lang.Object
java.lang.Enum<ModifierMatcher.Mode>
net.bytebuddy.matcher.ModifierMatcher.Mode
All Implemented Interfaces:
Serializable, Comparable<ModifierMatcher.Mode>, java.lang.constant.Constable
Enclosing class:
ModifierMatcher<T extends ModifierReviewable>

public static enum ModifierMatcher.Mode extends Enum<ModifierMatcher.Mode>
Determines the type of modifier to be matched by a ModifierMatcher.
  • Enum Constant Details

    • 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.
    • VOLATILE

      public static final ModifierMatcher.Mode VOLATILE
      Matches a volatile field.
    • TRANSIENT

      public static final ModifierMatcher.Mode TRANSIENT
      Matches a transient field.
    • MANDATED

      public static final ModifierMatcher.Mode MANDATED
      Matches a mandated parameter.
    • ENUMERATION

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

    • values

      public static ModifierMatcher.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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.
    • getMatcher

      protected ModifierMatcher<?> getMatcher()
      Returns a reusable matcher for this modifier sort.
      Returns:
      A reusable matcher for this modifier sort.