Package org.htmlunit.javascript.host
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 NativeFunction
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.htmlunit.corejs.javascript.NativeFunction
private 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
- theNativeFunction
this resolver is forscope
- the scope
-
-
Method Details
-
getNamespaceForPrefix
- Specified by:
getNamespaceForPrefix
in interfaceorg.htmlunit.xpath.xml.utils.PrefixResolver
-
getNamespaceForPrefix
- Specified by:
getNamespaceForPrefix
in interfaceorg.htmlunit.xpath.xml.utils.PrefixResolver
-
handlesNullPrefixes
public boolean handlesNullPrefixes()- Specified by:
handlesNullPrefixes
in interfaceorg.htmlunit.xpath.xml.utils.PrefixResolver
-