Class NativeFunctionPrefixResolver

  • All Implemented Interfaces:
    org.htmlunit.xpath.xml.utils.PrefixResolver

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

      Fields 
      Modifier and Type Field Description
      private org.htmlunit.corejs.javascript.NativeFunction resolverFn_  
      private org.htmlunit.corejs.javascript.Scriptable scope_  
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeFunctionPrefixResolver​(org.htmlunit.corejs.javascript.NativeFunction resolverFn, org.htmlunit.corejs.javascript.Scriptable scope)
      Constructor.
    • Field Detail

      • resolverFn_

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

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

      • 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 Detail

      • getNamespaceForPrefix

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

        public java.lang.String getNamespaceForPrefix​(java.lang.String prefix,
                                                      org.w3c.dom.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