Class NativeFunctionPrefixResolver

java.lang.Object
org.htmlunit.javascript.host.NativeFunctionPrefixResolver
All Implemented Interfaces:
org.htmlunit.xpath.xml.utils.PrefixResolver

public class NativeFunctionPrefixResolver extends Object implements org.htmlunit.xpath.xml.utils.PrefixResolver
A special PrefixResolver for NativeFunctions.
  • Field Details

    • resolverFn_

      private final org.htmlunit.corejs.javascript.NativeFunction resolverFn_
    • scope_

      private final org.htmlunit.corejs.javascript.Scriptable scope_
  • Constructor Details

    • NativeFunctionPrefixResolver

      public NativeFunctionPrefixResolver(org.htmlunit.corejs.javascript.NativeFunction resolverFn, org.htmlunit.corejs.javascript.Scriptable scope)
      Constructor.
      Parameters:
      resolverFn - the NativeFunction this resolver is for
      scope - the scope
  • Method Details

    • getNamespaceForPrefix

      public String getNamespaceForPrefix(String prefix)
      Specified by:
      getNamespaceForPrefix in interface org.htmlunit.xpath.xml.utils.PrefixResolver
    • getNamespaceForPrefix

      public String getNamespaceForPrefix(String prefix, Node node)
      Specified by:
      getNamespaceForPrefix in interface org.htmlunit.xpath.xml.utils.PrefixResolver
    • handlesNullPrefixes

      public boolean handlesNullPrefixes()
      Specified by:
      handlesNullPrefixes in interface org.htmlunit.xpath.xml.utils.PrefixResolver