Package org.openjdk.asmtools.jasm

## Class Modifiers

- java.lang.Object
- - org.openjdk.asmtools.jasm.Modifiers

-     public class Modifiers
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static int` | `MM_A_METHOD` |
    `static int` | `MM_ACCESS` |
    `static int` | `MM_ATTR` |
    `static int` | `MM_CLASS` |
    `static int` | `MM_EXPORTS` |
    `static int` | `MM_FIELD` |
    `static int` | `MM_I_METHOD` |
    `static int` | `MM_INNERCLASS` |
    `static int` | `MM_INTRF` |
    `static int` | `MM_METHOD` |
    `static int` | `MM_N_METHOD` |
    `static int` | `MM_REQUIRES` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static java.lang.String` | `accessString​(int mod, Tables.CF_Context context)` |
    `static boolean` | `both​(int mod, int flagA, int flagB)` |
    `static void` | `checkClassModifiers​(Environment env, int mod, Scanner scanner)` | Check the modifier flags for the class
    `static void` | `checkFieldModifiers​(org.openjdk.asmtools.jasm.ClassData cd, int mod, int pos)` | Check the modifier flags for the field
    `static void` | `checkInnerClassModifiers​(org.openjdk.asmtools.jasm.ClassData cd, int mod, int pos)` | Check the modifier flags for the inner-class
    `static void` | `checkMethodModifiers​(org.openjdk.asmtools.jasm.ClassData cd, int mod, int pos, boolean is_init, boolean is_clinit)` | Check the modifier flags for the method
    `static int` | `getInvalidModifiers4Class​(int mod)` |
    `static int` | `getInvalidModifiers4Interface​(int mod)` |
    `static boolean` | `hasPseudoMod​(int mod)` |
    `static boolean` | `isAbstract​(int mod)` |
    `static boolean` | `isAnnotation​(int mod)` |
    `static boolean` | `isBridge​(int mod)` |
    `static boolean` | `isDeprecated​(int mod)` |
    `static boolean` | `isDeprecatedPseudoMod​(int mod)` |
    `static boolean` | `isEnum​(int mod)` |
    `static boolean` | `isFinal​(int mod)` |
    `static boolean` | `isInterface​(int mod)` |
    `static boolean` | `isMandated​(int mod)` |
    `static boolean` | `isModule​(int mod)` |
    `static boolean` | `isNative​(int mod)` |
    `static boolean` | `isPrivate​(int mod)` |
    `static boolean` | `isProtected​(int mod)` |
    `static boolean` | `isPublic​(int mod)` |
    `static boolean` | `isStatic​(int mod)` |
    `static boolean` | `isStaticPhase​(int mod)` |
    `static boolean` | `isStrict​(int mod)` |
    `static boolean` | `isSuper​(int mod)` |
    `static boolean` | `isSynchronized​(int mod)` |
    `static boolean` | `isSynthetic​(int mod)` |
    `static boolean` | `isSyntheticPseudoMod​(int mod)` |
    `static boolean` | `isTransient​(int mod)` |
    `static boolean` | `isTransitive​(int mod)` |
    `static boolean` | `isVarArgs​(int mod)` |
    `static boolean` | `isVolatile​(int mod)` |
    `static java.lang.String` | `moduleFlags​(int flags)` |
    `static java.lang.String` | `toString​(int mod, Tables.CF_Context context)` |
    `static boolean` | `validAbstractMethod​(int mod)` |
    `static boolean` | `validAccess​(int mod)` |
    `static boolean` | `validClass​(int mod)` |
    `static boolean` | `validExports​(int mod)` |
    `static boolean` | `validField​(int mod)` |
    `static boolean` | `validInitMethod​(int mod)` |
    `static boolean` | `validInnerClass​(int mod)` |
    `static boolean` | `validInterface​(int mod)` |
    `static boolean` | `validInterfaceField​(int mod)` |
    `static boolean` | `validInterfaceMethod​(int mod, org.openjdk.asmtools.jasm.ClassData cd)` |
    `static boolean` | `validMethod​(int mod)` |
    `static boolean` | `validRequires​(int mod)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### MM_ATTR

          public static final int MM_ATTR

      See Also:
        Constant Field Values

    - #### MM_ACCESS

          public static final int MM_ACCESS

      See Also:
        Constant Field Values

    - #### MM_INTRF

          public static final int MM_INTRF

      See Also:
        Constant Field Values

    - #### MM_CLASS

          public static final int MM_CLASS

      See Also:
        Constant Field Values

    - #### MM_FIELD

          public static final int MM_FIELD

      See Also:
        Constant Field Values

    - #### MM_I_METHOD

          public static final int MM_I_METHOD

      See Also:
        Constant Field Values

    - #### MM_A_METHOD

          public static final int MM_A_METHOD

      See Also:
        Constant Field Values

    - #### MM_N_METHOD

          public static final int MM_N_METHOD

      See Also:
        Constant Field Values

    - #### MM_METHOD

          public static final int MM_METHOD

      See Also:
        Constant Field Values

    - #### MM_INNERCLASS

          public static final int MM_INNERCLASS

      See Also:
        Constant Field Values

    - #### MM_REQUIRES

          public static final int MM_REQUIRES

      See Also:
        Constant Field Values

    - #### MM_EXPORTS

          public static final int MM_EXPORTS

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### validRequires

          public static boolean validRequires​(int mod)

    - #### validExports

          public static boolean validExports​(int mod)

    - #### validInnerClass

          public static boolean validInnerClass​(int mod)

    - #### validField

          public static boolean validField​(int mod)

    - #### validMethod

          public static boolean validMethod​(int mod)

    - #### validInterface

          public static boolean validInterface​(int mod)

    - #### getInvalidModifiers4Interface

          public static int getInvalidModifiers4Interface​(int mod)

    - #### validClass

          public static boolean validClass​(int mod)

    - #### getInvalidModifiers4Class

          public static int getInvalidModifiers4Class​(int mod)

    - #### validAbstractMethod

          public static boolean validAbstractMethod​(int mod)

    - #### validInitMethod

          public static boolean validInitMethod​(int mod)

    - #### validInterfaceMethod

          public static boolean validInterfaceMethod​(int mod,
                                                     org.openjdk.asmtools.jasm.ClassData cd)

    - #### validInterfaceField

          public static boolean validInterfaceField​(int mod)

    - #### isPublic

          public static boolean isPublic​(int mod)

    - #### isPrivate

          public static boolean isPrivate​(int mod)

    - #### isProtected

          public static boolean isProtected​(int mod)

    - #### isInterface

          public static boolean isInterface​(int mod)

    - #### isAbstract

          public static boolean isAbstract​(int mod)

    - #### isFinal

          public static boolean isFinal​(int mod)

    - #### isStatic

          public static boolean isStatic​(int mod)

    - #### isSynthetic

          public static boolean isSynthetic​(int mod)

    - #### isDeprecated

          public static boolean isDeprecated​(int mod)

    - #### isTransient

          public static boolean isTransient​(int mod)

    - #### isAnnotation

          public static boolean isAnnotation​(int mod)

    - #### isNative

          public static boolean isNative​(int mod)

    - #### isStrict

          public static boolean isStrict​(int mod)

    - #### isEnum

          public static boolean isEnum​(int mod)

    - #### isSuper

          public static boolean isSuper​(int mod)

    - #### isModule

          public static boolean isModule​(int mod)

    - #### isMandated

          public static boolean isMandated​(int mod)

    - #### isSynchronized

          public static boolean isSynchronized​(int mod)

    - #### isBridge

          public static boolean isBridge​(int mod)

    - #### isVolatile

          public static boolean isVolatile​(int mod)

    - #### isVarArgs

          public static boolean isVarArgs​(int mod)

    - #### isSyntheticPseudoMod

          public static boolean isSyntheticPseudoMod​(int mod)

    - #### isDeprecatedPseudoMod

          public static boolean isDeprecatedPseudoMod​(int mod)

    - #### hasPseudoMod

          public static boolean hasPseudoMod​(int mod)

    - #### isTransitive

          public static boolean isTransitive​(int mod)

    - #### isStaticPhase

          public static boolean isStaticPhase​(int mod)

    - #### validAccess

          public static boolean validAccess​(int mod)

    - #### both

          public static boolean both​(int mod,
                                     int flagA,
                                     int flagB)

    - #### checkClassModifiers

          public static void checkClassModifiers​(Environment env,
                                                 int mod,
                                                 Scanner scanner)

      Check the modifier flags for the class
      Parameters:
        `env` - The error reporting environment.
        `mod` - The modifier flags being checked
        `scanner` - The file parser

    - #### checkFieldModifiers

          public static void checkFieldModifiers​(org.openjdk.asmtools.jasm.ClassData cd,
                                                 int mod,
                                                 int pos)

      Check the modifier flags for the field
      Parameters:
        `cd` - The ClassData for the current class
        `mod` - The modifier flags being checked
        `pos` - the position of the parser in the file

    - #### checkMethodModifiers

          public static void checkMethodModifiers​(org.openjdk.asmtools.jasm.ClassData cd,
                                                  int mod,
                                                  int pos,
                                                  boolean is_init,
                                                  boolean is_clinit)

      Check the modifier flags for the method
      Parameters:
        `cd` - The ClassData for the current class
        `mod` - The modifier flags being checked
        `pos` - the position of the parser in the file

    - #### checkInnerClassModifiers

          public static void checkInnerClassModifiers​(org.openjdk.asmtools.jasm.ClassData cd,
                                                      int mod,
                                                      int pos)

      Check the modifier flags for the inner-class
      Parameters:
        `cd` - The ClassData for the current class
        `mod` - The modifier flags being checked
        `pos` - the position of the parser in the file

    - #### toString

          public static java.lang.String toString​(int mod,
                                                  Tables.CF_Context context)

    - #### moduleFlags

          public static java.lang.String moduleFlags​(int flags)

    - #### accessString

          public static java.lang.String accessString​(int mod,
                                                      Tables.CF_Context context)