本文整理了Java中org.mozilla.javascript.xml.XMLObject.ecmaHas()
方法的一些代码示例,展示了XMLObject.ecmaHas()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLObject.ecmaHas()
方法的具体详情如下:
包路径:org.mozilla.javascript.xml.XMLObject
类名称:XMLObject
方法名:ecmaHas
[英]Implementation of ECMAScript Has.
[中]ECMAScriptHas的实现。
代码示例来源:origin: rhino/js
public static boolean hasObjectElem(Scriptable target, Object elem,
Context cx)
{
boolean result;
if (target instanceof XMLObject) {
XMLObject xmlObject = (XMLObject)target;
result = xmlObject.ecmaHas(cx, elem);
} else {
String s = toStringIdOrIndex(cx, elem);
if (s == null) {
int index = lastIndexResult(cx);
result = ScriptableObject.hasProperty(target, index);
} else {
result = ScriptableObject.hasProperty(target, s);
}
}
return result;
}
代码示例来源:origin: com.sun.phobos/phobos-rhino
public static boolean hasObjectElem(Scriptable target, Object elem,
Context cx)
{
boolean result;
if (target instanceof XMLObject) {
XMLObject xmlObject = (XMLObject)target;
result = xmlObject.ecmaHas(cx, elem);
} else {
String s = toStringIdOrIndex(cx, elem);
if (s == null) {
int index = lastIndexResult(cx);
result = ScriptableObject.hasProperty(target, index);
} else {
result = ScriptableObject.hasProperty(target, s);
}
}
return result;
}
代码示例来源:origin: rhino/js
if (withObj instanceof XMLObject) {
XMLObject xmlObject = (XMLObject)withObj;
if (xmlObject.ecmaHas(cx, id)) {
return xmlObject;
代码示例来源:origin: com.sun.phobos/phobos-rhino
if (withObj instanceof XMLObject) {
XMLObject xmlObject = (XMLObject)withObj;
if (xmlObject.ecmaHas(cx, id)) {
return xmlObject;
代码示例来源:origin: rhino/js
if (withObj instanceof XMLObject) {
XMLObject xmlObj = (XMLObject)withObj;
if (xmlObj.ecmaHas(cx, name)) {
代码示例来源:origin: com.sun.phobos/phobos-rhino
if (withObj instanceof XMLObject) {
XMLObject xmlObj = (XMLObject)withObj;
if (xmlObj.ecmaHas(cx, name)) {
内容来源于网络,如有侵权,请联系作者删除!