Enum Class EModifier

java.lang.Object
java.lang.Enum<EModifier>
org.openjdk.asmtools.common.structure.EModifier
All Implemented Interfaces:
Serializable, Comparable<EModifier>, Constable

public enum EModifier extends Enum<EModifier>
4. The class File Format

The enum contains all JVMS (class, field, method, nested class, module and module statements) accesses and modifiers taken from tables 4.1-A, 4.1-B, 4.5-A, 4.6-A, 4.7.6-A, 4.7.25 etc according to their context @see EClassFileContext

  • Enum Constant Details

    • ACC_NONE

      public static final EModifier ACC_NONE
    • ACC_PUBLIC

      public static final EModifier ACC_PUBLIC
    • ACC_PRIVATE

      public static final EModifier ACC_PRIVATE
    • ACC_PROTECTED

      public static final EModifier ACC_PROTECTED
    • ACC_STATIC

      public static final EModifier ACC_STATIC
    • ACC_FINAL

      public static final EModifier ACC_FINAL
    • ACC_SUPER

      public static final EModifier ACC_SUPER
    • ACC_TRANSITIVE

      public static final EModifier ACC_TRANSITIVE
    • ACC_SYNCHRONIZED

      public static final EModifier ACC_SYNCHRONIZED
    • ACC_OPEN

      public static final EModifier ACC_OPEN
    • ACC_VOLATILE

      public static final EModifier ACC_VOLATILE
    • ACC_BRIDGE

      public static final EModifier ACC_BRIDGE
    • ACC_STATIC_PHASE

      public static final EModifier ACC_STATIC_PHASE
    • ACC_PERMITS_VALUE

      public static final EModifier ACC_PERMITS_VALUE
    • ACC_TRANSIENT

      public static final EModifier ACC_TRANSIENT
    • ACC_VARARGS

      public static final EModifier ACC_VARARGS
    • ACC_NATIVE

      public static final EModifier ACC_NATIVE
    • ACC_VALUE

      public static final EModifier ACC_VALUE
    • ACC_INTERFACE

      public static final EModifier ACC_INTERFACE
    • ACC_ABSTRACT

      public static final EModifier ACC_ABSTRACT
    • ACC_STRICT

      public static final EModifier ACC_STRICT
    • ACC_PRIMITIVE

      public static final EModifier ACC_PRIMITIVE
    • ACC_SYNTHETIC

      public static final EModifier ACC_SYNTHETIC
    • ACC_ANNOTATION

      public static final EModifier ACC_ANNOTATION
    • ACC_ENUM

      public static final EModifier ACC_ENUM
    • ACC_MODULE

      public static final EModifier ACC_MODULE
    • ACC_MANDATED

      public static final EModifier ACC_MANDATED
    • SYNTHETIC_ATTRIBUTE

      public static final EModifier SYNTHETIC_ATTRIBUTE
    • DEPRECATED_ATTRIBUTE

      public static final EModifier DEPRECATED_ATTRIBUTE
  • Field Details

    • MM_METHOD

      public static final EModifier[] MM_METHOD
    • MM_CLASS

      public static final EModifier[] MM_CLASS
    • MM_INTERFACE

      public static final EModifier[] MM_INTERFACE
    • MM_FIELD

      public static final EModifier[] MM_FIELD
    • MM_ABSTRACT_METHOD

      public static final EModifier[] MM_ABSTRACT_METHOD
    • MM_INIT_METHOD

      public static final EModifier[] MM_INIT_METHOD
    • MM_NESTED_CLASS

      public static final EModifier[] MM_NESTED_CLASS
    • MM_INTERFACE_METHOD

      private static final EModifier[] MM_INTERFACE_METHOD
    • MM_MODULE

      private static final EModifier[] MM_MODULE
    • MM_MODULE_REQUIRES

      private static final EModifier[] MM_MODULE_REQUIRES
    • MM_MODULE_EXPORTS

      private static final EModifier[] MM_MODULE_EXPORTS
    • MM_MODULE_OPENS

      private static final EModifier[] MM_MODULE_OPENS
    • NAMES_DELIMITER

      public static String NAMES_DELIMITER
    • NAMES_SUFFIX

      public static String NAMES_SUFFIX
    • KEYWORDS_DELIMITER

      public static String KEYWORDS_DELIMITER
    • KEYWORDS_SUFFIX

      public static String KEYWORDS_SUFFIX
    • flag

      private final int flag
    • keyword

      private final String keyword
    • contexts

      private final Set<ClassFileContext> contexts
    • contextMask

      private int contextMask
  • Constructor Details

  • Method Details

    • values

      public static EModifier[] 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 EModifier 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
    • isPublic

      public static boolean isPublic(int flags)
    • isPrivate

      public static boolean isPrivate(int flags)
    • isProtected

      public static boolean isProtected(int flags)
    • isStatic

      public static boolean isStatic(int flags)
    • isFinal

      public static boolean isFinal(int flags)
    • isTransitive

      public static boolean isTransitive(int flags)
    • isSuper

      public static boolean isSuper(int flags)
    • isSynchronized

      public static boolean isSynchronized(int flags)
    • isVolatile

      public static boolean isVolatile(int flags)
    • isBridge

      public static boolean isBridge(int flags)
    • isStaticPhase

      public static boolean isStaticPhase(int flags)
    • isTransient

      public static boolean isTransient(int flags)
    • isVarArgs

      public static boolean isVarArgs(int flags)
    • isNative

      public static boolean isNative(int flags)
    • isInterface

      public static boolean isInterface(int flags)
    • isAbstract

      public static boolean isAbstract(int flags)
    • isStrict

      public static boolean isStrict(int flags)
    • isSynthetic

      public static boolean isSynthetic(int flags)
    • isAnnotation

      public static boolean isAnnotation(int flags)
    • isEnum

      public static boolean isEnum(int flags)
    • isModule

      public static boolean isModule(int flags)
    • isMandated

      public static boolean isMandated(int flags)
    • isSyntheticPseudoMod

      public static boolean isSyntheticPseudoMod(int flags)
    • isDeprecatedPseudoMod

      public static boolean isDeprecatedPseudoMod(int flags)
    • isValue

      public static boolean isValue(int flags)
    • isPermitsValue

      public static boolean isPermitsValue(int flags)
    • isPrimitive

      public static boolean isPrimitive(int flags)
    • hasPseudoMod

      public static boolean hasPseudoMod(int flags)
    • onlyOneOfFlags

      public static boolean onlyOneOfFlags(int flag, EModifier... modifiers)
    • anyOf

      public static boolean anyOf(int flag, EModifier... modifiers)
    • cleanFlags

      public static int cleanFlags(int flag, EModifier... modifiers)
    • both

      public static boolean both(int flags, EModifier modifierA, EModifier modifierB)
    • noFlagsExcept

      public static boolean noFlagsExcept(int flags, EModifier... modifiers)
    • getFlags

      public static int getFlags(EModifier... modifiers)
    • getFlags

      public static int getFlags(ClassFileContext context, EModifier... modifiers)
    • addTo

      private static int addTo(ArrayList<String> list, int flags, boolean isName, EModifier modifier)
    • asKeywords

      public static String asKeywords(int modifiers, ClassFileContext context)
    • asNames

      public static String asNames(int modifiers, ClassFileContext context)
    • flagsToString

      private static String flagsToString(int modifiers, boolean isName, ClassFileContext context, String delimiter, String suffix)
    • flagsToList

      private static ArrayList<String> flagsToList(int flags, boolean isName, ClassFileContext context)
      Get either a keyword or a name of a flags according to the context.
      Parameters:
      flags - the flags to choose a corresponding names or keywords.
      isName - either the JVMS modifier names ot JLS keywords are selected
      context - the entity for which the names/keywords are selected
      Returns:
      the List of the names or the keywords according to the parameter isName
    • clearIfSet

      private static int clearIfSet(int flag, EModifier... modifiers)
    • getClassFileContext

      public Set<ClassFileContext> getClassFileContext()
    • getAllovedContextMask

      public int getAllovedContextMask()
    • getFlag

      public int getFlag()
    • getJavaFlagModifier

      public String getJavaFlagModifier()
    • getFlagName

      public String getFlagName()