org.apache.dubbo.common.json.Yylex.zzScanError()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中org.apache.dubbo.common.json.Yylex.zzScanError()方法的一些代码示例,展示了Yylex.zzScanError()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex.zzScanError()方法的具体详情如下:
包路径:org.apache.dubbo.common.json.Yylex
类名称:Yylex
方法名:zzScanError

Yylex.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: apache/incubator-dubbo

/**
 * Pushes the specified amount of characters back into the input stream.
 * <p>
 * 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: apache/incubator-dubbo

/**
 * Pushes the specified amount of characters back into the input stream.
 * <p>
 * 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: apache/incubator-dubbo

return null;
} else {
  zzScanError(ZZ_NO_MATCH);
  break;

代码示例来源:origin: apache/incubator-dubbo

return null;
} else {
  zzScanError(ZZ_NO_MATCH);
  break;

代码示例来源:origin: org.apache.dubbo/dubbo

/**
 * Pushes the specified amount of characters back into the input stream.
 * <p>
 * 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: org.apache.dubbo/dubbo-common

/**
 * Pushes the specified amount of characters back into the input stream.
 * <p>
 * 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: org.apache.dubbo/dubbo

return null;
} else {
  zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: org.apache.dubbo/dubbo-common

return null;
} else {
  zzScanError(ZZ_NO_MATCH);

相关文章