Class ListOfTokens

java.lang.Object
  extended byListOfTokens

class ListOfTokens
extends java.lang.Object


Field Summary
private  Token head
          head of the list
 
Constructor Summary
(package private) ListOfTokens()
           
 
Method Summary
(package private)  int getIndex(int position)
          Returns the index of the string that contains position.
(package private)  int getLCE(java.lang.String p, int i, int j, int length)
          Returns the length of the Longest Common Extension (LCE), starting at position i of p, and j within the list of tokens.
(package private)  int getStart(int position)
          returns the starting index of the string containing "position"
(package private)  java.lang.String getSubstring(int leftIndex)
          returns the substring at the position "position", to the end of the string, where position is counted from the first symbol of the first token (cumulative position)
(package private)  java.lang.String getSubstring(int leftIndex, int length)
          returns the substring at the position "position", where position is counted from the first symbol of the first token (cumulative position)
(package private)  int getTotalLength()
          returns the total length of the strings contained in this list
(package private)  int insertToken(java.lang.String token)
          returns token position inserts token as string if the token is not already there
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

private Token head
head of the list

Constructor Detail

ListOfTokens

ListOfTokens()
Method Detail

insertToken

final int insertToken(java.lang.String token)
returns token position inserts token as string if the token is not already there


getSubstring

final java.lang.String getSubstring(int leftIndex,
                                    int length)
returns the substring at the position "position", where position is counted from the first symbol of the first token (cumulative position)


getSubstring

final java.lang.String getSubstring(int leftIndex)
returns the substring at the position "position", to the end of the string, where position is counted from the first symbol of the first token (cumulative position)


getStart

final int getStart(int position)
returns the starting index of the string containing "position"


getIndex

final int getIndex(int position)
Returns the index of the string that contains position.


getLCE

final int getLCE(java.lang.String p,
                 int i,
                 int j,
                 int length)
Returns the length of the Longest Common Extension (LCE), starting at position i of p, and j within the list of tokens.


getTotalLength

final int getTotalLength()
returns the total length of the strings contained in this list