gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 13:21:31 36 4
gpt4 key购买 nike

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

/**
 * 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.alibaba/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: com.alibaba/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: linux-china/dubbo3

/**
 * 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: linux-china/dubbo3

zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: linux-china/dubbo3

zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: com.alibaba/dubbo

return null;
} else {
  zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: com.alibaba/dubbo-common

return null;
} else {
  zzScanError(ZZ_NO_MATCH);

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com