|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectListOfTokens
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 |
private Token head
Constructor Detail |
ListOfTokens()
Method Detail |
final int insertToken(java.lang.String token)
final java.lang.String getSubstring(int leftIndex, int length)
final java.lang.String getSubstring(int leftIndex)
final int getStart(int position)
final int getIndex(int position)
final int getLCE(java.lang.String p, int i, int j, int length)
final int getTotalLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |