Enum Class TSCTokenFlag

java.lang.Object
java.lang.Enum<TSCTokenFlag>
org.openrewrite.javascript.internal.tsc.generated.TSCTokenFlag
All Implemented Interfaces:
Serializable, Comparable<TSCTokenFlag>, Constable

public enum TSCTokenFlag extends Enum<TSCTokenFlag>
  • Enum Constant Details

    • None

      public static final TSCTokenFlag None
    • PrecedingLineBreak

      public static final TSCTokenFlag PrecedingLineBreak
    • PrecedingJSDocComment

      public static final TSCTokenFlag PrecedingJSDocComment
    • Unterminated

      public static final TSCTokenFlag Unterminated
    • ExtendedUnicodeEscape

      public static final TSCTokenFlag ExtendedUnicodeEscape
    • Scientific

      public static final TSCTokenFlag Scientific
    • Octal

      public static final TSCTokenFlag Octal
    • HexSpecifier

      public static final TSCTokenFlag HexSpecifier
    • BinarySpecifier

      public static final TSCTokenFlag BinarySpecifier
    • OctalSpecifier

      public static final TSCTokenFlag OctalSpecifier
    • ContainsSeparator

      public static final TSCTokenFlag ContainsSeparator
    • UnicodeEscape

      public static final TSCTokenFlag UnicodeEscape
    • ContainsInvalidEscape

      public static final TSCTokenFlag ContainsInvalidEscape
      Also includes TemplateLiteralLikeFlags
    • BinaryOrOctalSpecifier

      public static final TSCTokenFlag BinaryOrOctalSpecifier
    • NumericLiteralFlags

      public static final TSCTokenFlag NumericLiteralFlags
  • Field Details

    • code

      public final int code
  • Method Details

    • values

      public static TSCTokenFlag[] 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 TSCTokenFlag 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
    • fromMaskExact

      public static TSCTokenFlag fromMaskExact(int code)
    • matches

      public boolean matches(int bitfield)
    • union

      public static int union(TSCTokenFlag... args)