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.- Author:
- Chuck Dumont
-
Constructor Summary
ConstructorsConstructorDescriptionNativeFunctionPrefixResolver(org.htmlunit.corejs.javascript.NativeFunction resolverFn, org.htmlunit.corejs.javascript.Scriptable scope) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceForPrefix(String prefix) getNamespaceForPrefix(String prefix, Node node) boolean
-
Constructor Details
-
NativeFunctionPrefixResolver
public NativeFunctionPrefixResolver(org.htmlunit.corejs.javascript.NativeFunction resolverFn, org.htmlunit.corejs.javascript.Scriptable scope) Constructor.- Parameters:
resolverFn- theNativeFunctionthis resolver is forscope- the scope
-
-
Method Details
-
getNamespaceForPrefix
-
getNamespaceForPrefix
-
handlesNullPrefixes
public boolean handlesNullPrefixes()- Specified by:
handlesNullPrefixesin interfaceorg.htmlunit.xpath.xml.utils.PrefixResolver
-