Package de.jplag

Interface TokenType

All Known Implementing Classes:
SharedTokenType

public interface TokenType
Indicates the type of a token. Needs to be implemented for each language module to declare what types of tokens can be extracted from code written in that language. A token type is expected to be stateless, thus it is recommended to use an enum or record.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the user-readable description of this token type.
    default Boolean
    Indicates that no matches containing this token type shall be generated.
  • Method Details

    • getDescription

      String getDescription()
      Returns the user-readable description of this token type.
    • isExcludedFromMatching

      default Boolean isExcludedFromMatching()
      Indicates that no matches containing this token type shall be generated. Defaults to false.
      Returns:
      true if token type is excluded from matching, otherwise false.