private final String scanXMLCommentText() throws IOException { // Scan for '-->' and return the text up to that point as // XML_COMMENT_TEXT unless the string occurs IMMEDIATELY, in which // case change to the ST_XML_COMMENT_END state and return the next // context as usual. return doScan("-->", false, XML_COMMENT_TEXT, ST_XML_COMMENT_END, ST_XML_COMMENT_END); }
/** * user method * * A generic lookahead-like operation */ private final String doBlockScan(String target, String targetContext, int immediateFallbackState) throws IOException { return doScan(target, false, targetContext, immediateFallbackState, immediateFallbackState); } /**
/** * user method * does a lookahead for the current tag name */ private final String doBlockTagScan() throws IOException { fIsCaseSensitiveBlocking = getBlockMarkerCaseSensitivity(); return doScan("</" + fCurrentTagName, true, getBlockMarkerContext(fCurrentTagName), YYINITIAL, YYINITIAL); } /**
return doScan("?>", false, XML_PI_CONTENT, ST_XML_PI_TAG_CLOSE, ST_XML_PI_TAG_CLOSE);