本文整理了Java中org.mozilla.javascript.Node.endCheckSwitch()
方法的一些代码示例,展示了Node.endCheckSwitch()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.endCheckSwitch()
方法的具体详情如下:
包路径:org.mozilla.javascript.Node
类名称:Node
方法名:endCheckSwitch
[英]Consistency of return statements is checked between the case statements. If there is no default, then the switch can fall through. If there is a default,we check to see if all code paths in the default return or if there is a code path that can fall through.
[中]在case语句之间检查return语句的一致性。如果没有默认设置,则开关可能会失效。如果存在默认值,我们将检查默认值中的所有代码路径是否都返回,或者是否存在可能失败的代码路径。
代码示例来源:origin: com.sun.phobos/phobos-rhino
return first.endCheckSwitch();
代码示例来源:origin: com.github.tntim96/rhino
return first.endCheckSwitch();
代码示例来源:origin: rhino/js
return first.endCheckSwitch();
代码示例来源:origin: ro.isdc.wro4j/rhino
return first.endCheckSwitch();
代码示例来源:origin: geogebra/geogebra
return first.endCheckSwitch();
代码示例来源:origin: io.apigee/rhino
return first.endCheckSwitch();
内容来源于网络,如有侵权,请联系作者删除!