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

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

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

Context.getE4xImplementationFactory介绍

[英]Returns an object which specifies an E4X implementation to use within this Context. Note that the XMLLib.Factory interface should be considered experimental. The default implementation uses the implementation provided by this Context's ContextFactory.
[中]返回一个对象,该对象指定要在此Context中使用的E4X实现。请注意,XMLLib。工厂接口应视为实验性接口。默认实现使用此Context的ContextFactory提供的实现。

代码示例

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

NativeScript.init(scope, sealed);
boolean withXml = cx.hasFeature(Context.FEATURE_E4X) && cx.getE4xImplementationFactory() != null;
    continue;
  } else if (withXml && className.equals("(xml)")) {
    className = cx.getE4xImplementationFactory().getImplementationClassName();

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

cx.getE4xImplementationFactory() != null;
  continue;
} else if (withXml && className.equals("(xml)")) {
  className = cx.getE4xImplementationFactory().
          getImplementationClassName();

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

cx.getE4xImplementationFactory() != null;
String xmlImpl = cx.getE4xImplementationFactory().getImplementationClassName();
new LazilyLoadedCtor(scope, "XML", xmlImpl, sealed, true);
new LazilyLoadedCtor(scope, "XMLList", xmlImpl, sealed, true);

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

cx.getE4xImplementationFactory() != null;
String xmlImpl = cx.getE4xImplementationFactory().getImplementationClassName();
new LazilyLoadedCtor(scope, "XML", xmlImpl, sealed, true);
new LazilyLoadedCtor(scope, "XMLList", xmlImpl, sealed, true);

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

cx.getE4xImplementationFactory() != null;
String xmlImpl = cx.getE4xImplementationFactory().getImplementationClassName();
new LazilyLoadedCtor(scope, "XML", xmlImpl, sealed, true);
new LazilyLoadedCtor(scope, "XMLList", xmlImpl, sealed, true);

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

cx.getE4xImplementationFactory() != null;
String xmlImpl = cx.getE4xImplementationFactory().getImplementationClassName();
new LazilyLoadedCtor(scope, "XML", xmlImpl, sealed, true);
new LazilyLoadedCtor(scope, "XMLList", xmlImpl, sealed, true);

相关文章

微信公众号

Context类方法