com.twitter.common.text.token.attribute
Interface TokenTypeAttribute

All Superinterfaces:
org.apache.lucene.util.Attribute
All Known Implementing Classes:
TokenTypeAttributeImpl

public interface TokenTypeAttribute
extends org.apache.lucene.util.Attribute

Attribute representing the type of each token.


Method Summary
 TokenType getType()
          Returns the type of the current token.
 void setType(TokenType type)
          Sets the type of the current token.
 

Method Detail

setType

void setType(TokenType type)
Sets the type of the current token.

Parameters:
type - type of the current token.

getType

TokenType getType()
Returns the type of the current token.

Returns:
type of the current token.