作者:min覀igreenr | 来源:互联网 | 2024-09-25 17:46
本文整理了Java中org.mozilla.Javascript.Context.isValidLanguageVersion()
方法的一些代码示例,展示了Context.isValidLanguageVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.isValidLanguageVersion()
方法的具体详情如下:
包路径:org.mozilla.Javascript.Context
类名称:Context
方法名:isValidLanguageVersion
Context.isValidLanguageVersion介绍
暂无
代码示例
代码示例来源:origin: rhino/js
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: geogebra/geogebra
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: com.github.tntim96/rhino
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: com.sun.phobos/phobos-rhino
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: io.apigee/rhino
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: ro.isdc.wro4j/rhino
public static void checkLanguageVersion(int version)
{
if (isValidLanguageVersion(version)) {
return;
}
throw new IllegalArgumentException("Bad language version: "+version);
}
代码示例来源:origin: org.apache.sling/org.apache.sling.scripting.Javascript
public static void setup(ScopeProvider sp, int languageVersion) {
// TODO what do we do in the other case? debugger won't work
if (!hasExplicitGlobal()) {
initGlobal(new SlingContextFactory(sp,
Context.isValidLanguageVersion(languageVersion) ? languageVersion : Context.VERSION_DEFAULT));
}
}
代码示例来源:origin: org.dojotoolkit/dojo-shrinksafe
usageError = args[i];
if (!Context.isValidLanguageVersion(version)) {
usageError = args[i];
代码示例来源:origin: ro.isdc.wro4j/rhino
break goodUsage;
if (!Context.isValidLanguageVersion(version)) {
usageError = args[i];
break goodUsage;
代码示例来源:origin: com.github.tntim96/rhino
break goodUsage;
if (!Context.isValidLanguageVersion(version)) {
usageError = args[i];
break goodUsage;