Enum Class IndexTokenType

java.lang.Object
java.lang.Enum<IndexTokenType>
org.eclipse.lemminx.extensions.index.scanner.IndexTokenType
All Implemented Interfaces:
Serializable, Comparable<IndexTokenType>, Constable

public enum IndexTokenType extends Enum<IndexTokenType>
Token types produced by IndexScanner.

Only the tokens needed for workspace Bloom-index collection are included. The scanner skips everything else (text content, end tags, comments, CDATA) without allocating any objects.

  • Enum Constant Details

    • PI_NAME

      public static final IndexTokenType PI_NAME
      Processing-instruction name, e.g. xml-model in <?xml-model href="schema.xsd"?>. Always followed immediately by PI_CONTENT.
    • PI_CONTENT

      public static final IndexTokenType PI_CONTENT
      Processing-instruction content — everything between the PI name and the closing ?>, with leading whitespace stripped. Example: href="schema.xsd" type="application/xml".
    • START_TAG

      public static final IndexTokenType START_TAG
      Local name of a start tag (namespace prefix stripped). Example: element for <xs:element>.
    • ATTRIBUTE_NAME

      public static final IndexTokenType ATTRIBUTE_NAME
      Attribute local name (namespace prefix stripped). Always followed immediately by ATTRIBUTE_VALUE when the attribute has a quoted value; otherwise the value is absent and the next token belongs to the same element.
    • ATTRIBUTE_VALUE

      public static final IndexTokenType ATTRIBUTE_VALUE
      Attribute value with surrounding quotes stripped. Line/column position is of the value content (after the opening quote).
    • DOCTYPE_SYSTEM_ID

      public static final IndexTokenType DOCTYPE_SYSTEM_ID
      DOCTYPE system identifier — the filename after SYSTEM or the second quoted string after PUBLIC.
    • DOCTYPE_PUBLIC_ID

      public static final IndexTokenType DOCTYPE_PUBLIC_ID
      DOCTYPE public identifier — the first quoted string after PUBLIC. Usually followed by a DOCTYPE_SYSTEM_ID.
    • EOS

      public static final IndexTokenType EOS
      End of stream — no more tokens.
  • Method Details

    • values

      public static IndexTokenType[] 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 IndexTokenType 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