gpt4 book ai didi

org.mozilla.javascript.xml.XMLObject.get()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 14:53:40 27 4
gpt4 key购买 nike

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

XMLObject.get介绍

[英]Implementation of ECMAScript Get.
[中]ECMAScriptGet的实现。

代码示例

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

public final Object get(String name, Scriptable start) {
  return super.get(name, start);
}

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

@Override
public Object getFunctionProperty(Context cx, int id) {
  if (prototypeFlag) {
    return super.get(id, this);
  } else {
    Scriptable proto = getPrototype();
    if (proto instanceof XMLObject) {
      return ((XMLObject)proto).getFunctionProperty(cx, id);
    }
  }
  return NOT_FOUND;
}

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

final Object getMethod(String id) {
  return super.get(id, this);
}

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

@Override
public Object getFunctionProperty(Context cx, String name) {
  if (prototypeFlag) {
    return super.get(name, this);
  } else {
    Scriptable proto = getPrototype();
    if (proto instanceof XMLObject) {
      return ((XMLObject)proto).getFunctionProperty(cx, name);
    }
  }
  return NOT_FOUND;
}

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

public static Object getObjectElem(Scriptable obj, Object elem,
                  Context cx)
{
  Object result;
  if (obj instanceof XMLObject) {
    result = ((XMLObject)obj).get(cx, elem);
  } else {
    String s = toStringIdOrIndex(cx, elem);
    if (s == null) {
      int index = lastIndexResult(cx);
      result = ScriptableObject.getProperty(obj, index);
    } else {
      result = ScriptableObject.getProperty(obj, s);
    }
  }
  if (result == Scriptable.NOT_FOUND) {
    result = Undefined.instance;
  }
  return result;
}

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

@Override
public Object getFunctionProperty(Context cx, int id) {
  if (isPrototype()) {
    return super.get(id, this);
  } else {
    Scriptable proto = getPrototype();
    if (proto instanceof XMLObject) {
      return ((XMLObject)proto).getFunctionProperty(cx, id);
    }
  }
  return NOT_FOUND;
}

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

public static Object getObjectElem(Scriptable obj, Object elem,
                  Context cx)
{
  Object result;
  if (obj instanceof XMLObject) {
    result = ((XMLObject)obj).get(cx, elem);
  } else {
    String s = toStringIdOrIndex(cx, elem);
    if (s == null) {
      int index = lastIndexResult(cx);
      result = ScriptableObject.getProperty(obj, index);
    } else {
      result = ScriptableObject.getProperty(obj, s);
    }
  }
  if (result == Scriptable.NOT_FOUND) {
    result = Undefined.instance;
  }
  return result;
}

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

@Override
public Object getFunctionProperty(Context cx, String name) {
  if (isPrototype()) {
    return super.get(name, this);
  } else {
    Scriptable proto = getPrototype();
    if (proto instanceof XMLObject) {
      return ((XMLObject)proto).getFunctionProperty(cx, name);
    }
  }
  return NOT_FOUND;
}

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

public static Object getObjectElem(Scriptable obj, Object elem,
                  Context cx)
{
  Object result;
  if (obj instanceof XMLObject) {
    result = ((XMLObject)obj).get(cx, elem);
  } else {
    String s = toStringIdOrIndex(cx, elem);
    if (s == null) {
      int index = lastIndexResult(cx);
      result = ScriptableObject.getProperty(obj, index);
    } else {
      result = ScriptableObject.getProperty(obj, s);
    }
  }
  if (result == Scriptable.NOT_FOUND) {
    result = Undefined.instance;
  }
  return result;
}

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

public static Object getObjectElem(Scriptable obj, Object elem,
                  Context cx)
{
  Object result;
  if (obj instanceof XMLObject) {
    result = ((XMLObject)obj).get(cx, elem);
  } else {
    String s = toStringIdOrIndex(cx, elem);
    if (s == null) {
      int index = lastIndexResult(cx);
      result = ScriptableObject.getProperty(obj, index);
    } else {
      result = ScriptableObject.getProperty(obj, s);
    }
  }
  if (result == Scriptable.NOT_FOUND) {
    result = Undefined.instance;
  }
  return result;
}

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

result = xmlObj.get(name, xmlObj);
  break;
result = firstXMLObject.get(name, firstXMLObject);

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

result = xmlObj.get(name, xmlObj);
  break;
result = firstXMLObject.get(name, firstXMLObject);

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

result = xmlObj.get(name, xmlObj);
  break;
result = firstXMLObject.get(name, firstXMLObject);

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

result = xmlObj.get(name, xmlObj);
  break;
result = firstXMLObject.get(name, firstXMLObject);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com