| java.lang.Object de.susebox.jtopas.spi.StandardSequenceHandler
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 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 .
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: NullPointerException - if no DataProvider is given |
|
|