com.bluemarsh.jswat.view
Interface TokenInfo

All Known Implementing Classes:
BasicTokenInfo

public interface TokenInfo

This interface provides information about each individual token being drawn to the text area. A token is usually a single word or character that has meaning in one programming language or another.

Author:
Nathan Fiedler

Method Summary
 int getLength()
          Get the length of this token.
 int getStartOffset()
          Get the character offset within the document of the first character in this token.
 java.lang.String toString()
          Returns a string representation of this token information.
 

Method Detail

getLength

public int getLength()
Get the length of this token.
Returns:
length of the token.

getStartOffset

public int getStartOffset()
Get the character offset within the document of the first character in this token.
Returns:
first character offset.

toString

public java.lang.String toString()
Returns a string representation of this token information.
Overrides:
toString in class java.lang.Object
Returns:
a String.