Enum Class MethodModifier

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

public enum MethodModifier extends Enum<MethodModifier>
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 MethodModifier[] 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 MethodModifier 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
    • isAbstract

      public static boolean isAbstract(@NonNull Set<MethodModifier> m)
    • isFinal

      public static boolean isFinal(@NonNull Set<MethodModifier> m)
    • isNative

      public static boolean isNative(@NonNull Set<MethodModifier> m)
    • isPrivate

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

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

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

      public static boolean isStatic(@NonNull Set<MethodModifier> m)
    • isSynchronized

      public static boolean isSynchronized(@NonNull Set<MethodModifier> m)
    • isVarargs

      public static boolean isVarargs(@NonNull Set<MethodModifier> m)
    • isBridge

      public static boolean isBridge(@NonNull Set<MethodModifier> m)
    • isStrictFP

      public static boolean isStrictFP(@NonNull Set<MethodModifier> m)
    • isEnum

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

      public static boolean isSynthetic(@NonNull Set<MethodModifier> m)
    • isConstructor

      public static boolean isConstructor(@NonNull Set<MethodModifier> m)
    • isDeclaredSynchronized

      public static boolean isDeclaredSynchronized(@NonNull Set<MethodModifier> m)
    • toString

      public static @NonNull String toString(@NonNull Set<MethodModifier> 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<MethodModifier> m)
    • getBytecode

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