本文整理了Java中org.fife.ui.rsyntaxtextarea.modes.YamlTokenMaker.zzScanError()
方法的一些代码示例,展示了YamlTokenMaker.zzScanError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlTokenMaker.zzScanError()
方法的具体详情如下:
包路径:org.fife.ui.rsyntaxtextarea.modes.YamlTokenMaker
类名称:YamlTokenMaker
方法名:zzScanError
[英]Reports an error that occured while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a match-all fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner etc.). Usual syntax/scanner level error handling should be done in error fallback rules.
[中]报告扫描时发生的错误。在格式良好的扫描器中(没有或仅正确使用yypushback(int)和“全部匹配”回退规则),只会在“不可能发生”的情况下调用此方法。如果调用此方法,则表示出现严重错误(例如,JFlex错误导致扫描仪出现故障等)。通常的语法/扫描程序级错误处理应在错误回退规则中完成。
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: bobbylight/RSyntaxTextArea
zzScanError(ZZ_NO_MATCH);
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
zzScanError(ZZ_NO_MATCH);
内容来源于网络,如有侵权,请联系作者删除!