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

x33g5p2x  于2022-01-30 转载在 JavaScript  
字(2.9k)|赞(0)|评价(0)|浏览(129)

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

ScriptableObject.getClassName介绍

[英]Return the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
[中]返回类的名称。这通常与构造函数的名称相同。扩展ScriptableObject的类必须实现这个抽象方法。

代码示例

代码示例来源:origin: org.kohsuke.httpunit/httpunit

public String toString() {
  return (_scriptable == null ? "prototype " : "") + getClassName();
}

代码示例来源:origin: alexo/wro4j

if (scriptable.getClassName().equals("Date")) {

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

if (scriptable.getClassName().equals("Date")) {

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

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

public static void setObjectProtoAndParent(ScriptableObject object,
                      Scriptable scope)
{
  // Compared with function it always sets the scope to top scope
  scope = ScriptableObject.getTopLevelScope(scope);
  object.setParentScope(scope);
  Scriptable proto
    = ScriptableObject.getClassPrototype(scope, object.getClassName());
  object.setPrototype(proto);
}

相关文章

微信公众号

ScriptableObject类方法