com.twitter.common.text.token
Class TokenizedCharSequence.Token

java.lang.Object
  extended by com.twitter.common.text.token.TokenizedCharSequence.Token
Enclosing class:
TokenizedCharSequence

public static final class TokenizedCharSequence.Token
extends Object


Field Summary
static int DEFAULT_PART_OF_SPEECH
           
 
Constructor Summary
protected TokenizedCharSequence.Token(CharBuffer term, TokenType type)
           
protected TokenizedCharSequence.Token(CharBuffer term, TokenType type, int pos)
           
 
Method Summary
 int getLength()
           
 int getOffset()
           
 int getPartOfSpeech()
           
 CharSequence getTerm()
           
 TokenType getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PART_OF_SPEECH

public static final int DEFAULT_PART_OF_SPEECH
See Also:
Constant Field Values
Constructor Detail

TokenizedCharSequence.Token

protected TokenizedCharSequence.Token(CharBuffer term,
                                      TokenType type)

TokenizedCharSequence.Token

protected TokenizedCharSequence.Token(CharBuffer term,
                                      TokenType type,
                                      int pos)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getTerm

public CharSequence getTerm()

getOffset

public int getOffset()

getLength

public int getLength()

getType

public TokenType getType()

getPartOfSpeech

public int getPartOfSpeech()