| de.susebox.jtopas.spi.SequenceHandler
All known Subclasses: de.susebox.jtopas.spi.StandardSequenceHandler, de.susebox.jtopas.impl.SequenceStore,
hasSequenceCommentOrString | public boolean hasSequenceCommentOrString()(Code) | | This method can be used by a
de.susebox.jtopas.Tokenizer implementation
for a fast detection if special sequence checking must be performed at all.
If the method returns false time-consuming preparations can be
skipped.
true if there actually are pattern that can be testedfor a match, false otherwise. |
startsWithSequenceCommentOrString | public TokenizerProperty startsWithSequenceCommentOrString(DataProvider dataProvider) throws TokenizerException, NullPointerException(Code) | | This method checks if a given range of data starts with a special sequence,
a comment or a string. These three types of token are tested together since
both comment and string prefixes are ordinary special sequences. Only the
actions preformed after a string or comment has been detected,
are different.
The method returns null if no special sequence, comment or string
could matches the the leading part of the data range given through the
DataProvider .
In cases of strings or comments, the return value contains the description
for the introducing character sequence, NOT the whole
string or comment. The reading of the rest of the string or comment is done
by the calling
de.susebox.jtopas.Tokenizer .
Parameters: dataProvider - the source to get the data range from a de.susebox.jtopas.TokenizerProperty if a special sequence, comment or string could be detected, null otherwise throws: TokenizerException - generic exception throws: NullPointerException - if no DataProvider is given |
|
|