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 Summary
FieldsModifier and TypeFieldDescriptionprivate final org.htmlunit.corejs.javascript.NativeFunctionprivate final org.htmlunit.corejs.javascript.Scriptable -
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
-
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- theNativeFunctionthis resolver is forscope- the scope
-
-
Method Details
-
getNamespaceForPrefix
-
getNamespaceForPrefix
-
handlesNullPrefixes
public boolean handlesNullPrefixes()- Specified by:
handlesNullPrefixesin interfaceorg.htmlunit.xpath.xml.utils.PrefixResolver
-