本文整理了Java中org.mozilla.javascript.ScriptableObject.getClassName()
方法的一些代码示例,展示了ScriptableObject.getClassName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScriptableObject.getClassName()
方法的具体详情如下:
包路径:org.mozilla.javascript.ScriptableObject
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!