Enum Class FieldModifier

java.lang.Object
java.lang.Enum<FieldModifier>
sootup.core.model.FieldModifier
All Implemented Interfaces:
Serializable, Comparable<FieldModifier>, Constable

public enum FieldModifier extends Enum<FieldModifier>
An Enum that provides static methods and constants to represent and work with with Java modifiers (ie public, final,...) Represents Java modifiers that can be packed and combined via EnumSet and methods to query these.
  • Enum Constant Details

  • Method Details

    • values

      public static FieldModifier[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FieldModifier valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isFinal

      public static boolean isFinal(@NonNull Set<FieldModifier> m)
    • isPrivate

      public static boolean isPrivate(@NonNull Set<FieldModifier> m)
    • isProtected

      public static boolean isProtected(@NonNull Set<FieldModifier> m)
    • isPublic

      public static boolean isPublic(@NonNull Set<FieldModifier> m)
    • isStatic

      public static boolean isStatic(@NonNull Set<FieldModifier> m)
    • isTransient

      public static boolean isTransient(@NonNull Set<FieldModifier> m)
    • isVolatile

      public static boolean isVolatile(@NonNull Set<FieldModifier> m)
    • isEnum

      public static boolean isEnum(@NonNull Set<FieldModifier> m)
    • isSynthetic

      public static boolean isSynthetic(@NonNull Set<FieldModifier> m)
    • toString

      public static @NonNull String toString(@NonNull Set<FieldModifier> m)
      Converts the given modifiers to their string representation, in canonical form.
      Parameters:
      m - a modifier set
      Returns:
      a textual representation of the modifiers.
    • toString

      public static @NonNull String toString(@NonNull EnumSet<FieldModifier> m)
    • getBytecode

      public int getBytecode()
      Returns:
      the bytecode of this Modifier.