org.mozilla.javascript.ImporterTopLevel.js_construct()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 JavaScript  
字(3.3k)|赞(0)|评价(0)|浏览(171)

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

ImporterTopLevel.js_construct介绍

暂无

代码示例

代码示例来源:origin: geogebra/geogebra

@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

代码示例来源:origin: rhino/js

@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

代码示例来源:origin: com.github.tntim96/rhino

@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

代码示例来源:origin: io.apigee/rhino

@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

代码示例来源:origin: ro.isdc.wro4j/rhino

@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
             Scriptable thisObj, Object[] args)
{
  if (!f.hasTag(IMPORTER_TAG)) {
    return super.execIdCall(f, cx, scope, thisObj, args);
  }
  int id = f.methodId();
  switch (id) {
   case Id_constructor:
    return js_construct(scope, args);
   case Id_importClass:
    return realThis(thisObj, f).js_importClass(args);
   case Id_importPackage:
    return realThis(thisObj, f).js_importPackage(args);
  }
  throw new IllegalArgumentException(String.valueOf(id));
}

相关文章