Enum Class JasmTokens.AnnotationType

java.lang.Object
java.lang.Enum<JasmTokens.AnnotationType>
org.openjdk.asmtools.jasm.JasmTokens.AnnotationType
All Implemented Interfaces:
Serializable, Comparable<JasmTokens.AnnotationType>, Constable
Enclosing class:
JasmTokens

public static enum JasmTokens.AnnotationType extends Enum<JasmTokens.AnnotationType>
  • Enum Constant Details

  • Field Details

    • jasmPrefix

      private final String jasmPrefix
  • Constructor Details

    • AnnotationType

      private AnnotationType(String jasmPrefix)
  • Method Details

    • values

      public static JasmTokens.AnnotationType[] 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 JasmTokens.AnnotationType 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
    • isAnnotationToken

      public static boolean isAnnotationToken(String str)
      isAnnotationToken examines the beginning of a string to see if it starts with an annotation characters ('@+' = visible annotation, '@-' = invisible).
      Parameters:
      str - String to be analyzed
      Returns:
      True if the string starts with an annotation char.
    • isTypeAnnotationToken

      public static boolean isTypeAnnotationToken(String str)
      isTypeAnnotationToken examines the beginning of a string to see if it starts with type annotation characters ('@T+' = visible type annotation, '@T-' = invisible).
      Parameters:
      str - String to be analyzed
      Returns:
      True if the string starts with an annotation char.
    • isAnnotation

      public static boolean isAnnotation(String str)
      isAnnotation examines the beginning of a string to see if it starts with an annotation character
      Parameters:
      str - String to be analyzed
      Returns:
      True if the string starts with an annotation char.
    • isInvisibleAnnotationToken

      public static boolean isInvisibleAnnotationToken(String str)
      isInvisibleAnnotationToken examines the end of an annotation token to determine visibility ('+' = visible annotation, '-' = invisible).
      Parameters:
      str - String to be analyzed
      Returns:
      True if the token implies invisible annotation.