Interface TypeAttribute

All Superinterfaces:
Attribute
All Known Implementing Classes:
PackedTokenAttributeImpl, TypeAttributeImpl

public interface TypeAttribute extends Attribute
A Token's lexical type. The Default value is "word".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    the default type
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set the lexical type.
    Returns this Token's lexical type.
  • Field Details

  • Method Details

    • type

      String type()
      Returns this Token's lexical type. Defaults to "word".
      See Also:
    • setType

      void setType(String type)
      Set the lexical type.
      See Also: