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

x33g5p2x  于2022-01-18 转载在 JavaScript  
字(6.0k)|赞(0)|评价(0)|浏览(179)

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

Context.getClassShutter介绍

暂无

代码示例

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

private static boolean isVisible(Context cx, Object obj) {
  ClassShutter shutter = cx.getClassShutter();
  return shutter == null ||
    shutter.visibleToScripts(obj.getClass().getName());
}

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

private static boolean isVisible(Context cx, Object obj) {
  ClassShutter shutter = cx.getClassShutter();
  return shutter == null ||
    shutter.visibleToScripts(obj.getClass().getName());
}

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

private static boolean isVisible(Context cx, Object obj) {
  ClassShutter shutter = cx.getClassShutter();
  return shutter == null ||
    shutter.visibleToScripts(obj.getClass().getName());
}

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

private static boolean isVisible(Context cx, Object obj) {
  ClassShutter shutter = cx.getClassShutter();
  return shutter == null ||
    shutter.visibleToScripts(obj.getClass().getName());
}

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

private static boolean isVisible(Context cx, Object obj) {
  ClassShutter shutter = cx.getClassShutter();
  return shutter == null ||
    shutter.visibleToScripts(obj.getClass().getName());
}

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

JavaMembers(Scriptable scope, Class cl, boolean includeProtected)
{
  Context cx = Context.getContext();
  ClassShutter shutter = cx.getClassShutter();
  if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
    throw Context.reportRuntimeError1("msg.access.prohibited",
                     cl.getName());
  }
  this.members = new Hashtable(23);
  this.staticMembers = new Hashtable(7);
  this.cl = cl;
  reflect(scope, includeProtected);
}

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

JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
  try {
    Context cx = ContextFactory.getGlobal().enterContext();
    ClassShutter shutter = cx.getClassShutter();
    if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
      throw Context.reportRuntimeError1("msg.access.prohibited",
                       cl.getName());
    }
    this.includePrivate = cx.hasFeature(
      Context.FEATURE_ENHANCED_JAVA_ACCESS);
    this.members = new HashMap<String,Object>();
    this.staticMembers = new HashMap<String,Object>();
    this.cl = cl;
    reflect(scope, includeProtected);
  } finally {
    Context.exit();
  }
}

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

JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
  try {
    Context cx = ContextFactory.getGlobal().enterContext();
    ClassShutter shutter = cx.getClassShutter();
    if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
      throw Context.reportRuntimeError1("msg.access.prohibited",
                       cl.getName());
    }
    this.members = new HashMap<String,Object>();
    this.staticMembers = new HashMap<String,Object>();
    this.cl = cl;
    boolean includePrivate = cx.hasFeature(
        Context.FEATURE_ENHANCED_JAVA_ACCESS);
    reflect(scope, includeProtected, includePrivate);
  } finally {
    Context.exit();
  }
}

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

JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
  try {
    Context cx = ContextFactory.getGlobal().enterContext();
    ClassShutter shutter = cx.getClassShutter();
    if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
      throw Context.reportRuntimeError1("msg.access.prohibited",
                       cl.getName());
    }
    this.members = new HashMap<String,Object>();
    this.staticMembers = new HashMap<String,Object>();
    this.cl = cl;
    boolean includePrivate = cx.hasFeature(
        Context.FEATURE_ENHANCED_JAVA_ACCESS);
    reflect(scope, includeProtected, includePrivate);
  } finally {
    Context.exit();
  }
}

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

JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
  try {
    Context cx = ContextFactory.getGlobal().enterContext();
    ClassShutter shutter = cx.getClassShutter();
    if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
      throw Context.reportRuntimeError1("msg.access.prohibited",
                       cl.getName());
    }
    this.members = new HashMap<String,Object>();
    this.staticMembers = new HashMap<String,Object>();
    this.cl = cl;
    boolean includePrivate = cx.hasFeature(
        Context.FEATURE_ENHANCED_JAVA_ACCESS);
    reflect(scope, includeProtected, includePrivate);
  } finally {
    Context.exit();
  }
}

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

JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
  try {
    Context cx = ContextFactory.getGlobal().enterContext();
    ClassShutter shutter = cx.getClassShutter();
    if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
      throw Context.reportRuntimeError1("msg.access.prohibited",
                       cl.getName());
    }
    this.members = new HashMap<String,Object>();
    this.staticMembers = new HashMap<String,Object>();
    this.cl = cl;
    boolean includePrivate = cx.hasFeature(
        Context.FEATURE_ENHANCED_JAVA_ACCESS);
    reflect(scope, includeProtected, includePrivate);
  } finally {
    Context.exit();
  }
}

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

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

? name : packageName + '.' + name;
Context cx = Context.getContext();
ClassShutter shutter = cx.getClassShutter();
Scriptable newValue = null;
if (shutter == null || shutter.visibleToScripts(className)) {

相关文章

微信公众号

Context类方法