| java.lang.Object de.susebox.jtopas.impl.SequenceStore
All known Subclasses: de.susebox.jtopas.impl.NoCaseSequenceStore,
Inner Class :final class PropertyList | |
Inner Class :final class SpecialSequencesIterator implements Iterator | |
Constructor Summary | |
public | SequenceStore(boolean useExactLength) The constructor initializes a SequenceStore with the given
comparision policy (prefix comparison). |
DIRECT_INDEX_COUNT | public static char DIRECT_INDEX_COUNT(Code) | | This number is the size of the array that is directly indexed by letters
|
SequenceStore | public SequenceStore(boolean useExactLength)(Code) | | The constructor initializes a SequenceStore with the given
comparision policy (prefix comparison).
Parameters: useExactLength - if true search only for a property thathas the length of de.susebox.jtopas.spi.DataProvider.getLength |
addKeyword | public TokenizerProperty addKeyword(TokenizerProperty property)(Code) | | Addingt or replacing a keyword.
Parameters: property - the description of the new keyword the previously version of the given property or null |
addSpecialSequence | public TokenizerProperty addSpecialSequence(TokenizerProperty property)(Code) | | Addingt or replacing a special sequence, comment or string.
Parameters: property - the description of the new sequence the previously version of the given property or null |
compare | protected int compare(char char1, char char2)(Code) | | Compare tho characters. Returns the difference of the to characters, 0 if
they are equal. The default implementation compares case-sensitive, for the
lexicographical solution see
NoCaseSequenceStore ..............
Parameters: char1 - first character to compare Parameters: char2 - first character to compare 0 if equal, < 0 if char1 < char2, > 0 otherwise |
getKeyword | public TokenizerProperty getKeyword(String image)(Code) | | Get the full description of a keyword property.
Parameters: image - keyword candidate to look for the full keyword description or null |
getSequenceMaxLength | public int getSequenceMaxLength()(Code) | | This method returns the length of the longest special sequence, comment or
string prefix that is known to this SequenceStore . See
de.susebox.jtopas.spi.SequenceHandler for details.
the number of characters needed in the worst case to identify a special sequence |
getSpecialSequence | public TokenizerProperty getSpecialSequence(String image)(Code) | | Get the full description of a special sequence property.
Parameters: image - sequence to find the full sequence description or null |
getStartChar | protected char getStartChar(char startChar)(Code) | | The method returns the normalized start character. This default implementation
returns the given character itself, for case-insensitive handling see the
derived class
NoCaseSequenceStore .
Parameters: startChar - a not normalized start character the normalized start character |
hasKeywords | public boolean hasKeywords()(Code) | | This method returns true if there are any keywords registered
in this instance. See the
de.susebox.jtopas.spi.KeywordHandler
interface for details.
true if there are any keywords available, false otherwise. |
hasSequenceCommentOrString | public boolean hasSequenceCommentOrString()(Code) | | This method returns true if there are any special sequences,
strings or comments registered in this instance. See the
de.susebox.jtopas.spi.SequenceHandler interface for details.
true if there are any special sequences, strings orcomments available, false otherwise. |
removeKeyword | public TokenizerProperty removeKeyword(String image)(Code) | | Removing a special sequence from the store. If the special sequence denoted
by the given string does not exist the method returns null .
Parameters: image - sequence to remove the removed property or null if the sequence was not found |
removeSpecialSequence | public TokenizerProperty removeSpecialSequence(String image)(Code) | | Removing a special sequence from the store. If the special sequence denoted
by the given string does not exist the method returns null .
Parameters: image - sequence to remove the removed property or null if the sequence was not found |
|
|