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 StringDEFAULT_TYPEthe default type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetType(String type)Set the lexical type.Stringtype()Returns this Token's lexical type.
-
-
-
Field Detail
-
DEFAULT_TYPE
static final String DEFAULT_TYPE
the default type- See Also:
- Constant Field Values
-
-
Method Detail
-
type
String type()
Returns this Token's lexical type. Defaults to "word".- See Also:
setType(String)
-
-