Package org.htmlunit.javascript.host.dom
Class NodeFilter
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.dom.NodeFilter
- All Implemented Interfaces:
Serializable
,Cloneable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
A JavaScript object for
NodeFilter
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Accept the node.static final int
Reject the node.static final int
Skip the node.static final long
Show all nodes.static final int
Show Attr nodes.static final int
Show CDATASection nodes.static final int
Show Comment nodes.static final int
Show Document nodes.static final int
Show DocumentFragment nodes.static final int
Show DocumentType nodes.static final int
Show Element nodes.static final int
Show Entity nodes.static final int
Show EntityReference nodes.static final int
Show Notation nodes.static final int
Show ProcessingInstruction nodes.static final int
Show Text nodes.Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
Field Details
-
FILTER_ACCEPT
public static final int FILTER_ACCEPTAccept the node.- See Also:
-
FILTER_REJECT
public static final int FILTER_REJECTReject the node.- See Also:
-
FILTER_SKIP
public static final int FILTER_SKIPSkip the node.- See Also:
-
SHOW_ALL
public static final long SHOW_ALLShow all nodes.- See Also:
-
SHOW_ELEMENT
public static final int SHOW_ELEMENTShow Element nodes.- See Also:
-
SHOW_ATTRIBUTE
public static final int SHOW_ATTRIBUTEShow Attr nodes. Only useful when creating a TreeWalker with an attribute node as its root.- See Also:
-
SHOW_TEXT
public static final int SHOW_TEXTShow Text nodes.- See Also:
-
SHOW_CDATA_SECTION
public static final int SHOW_CDATA_SECTIONShow CDATASection nodes.- See Also:
-
SHOW_ENTITY_REFERENCE
public static final int SHOW_ENTITY_REFERENCEShow EntityReference nodes.- See Also:
-
SHOW_ENTITY
public static final int SHOW_ENTITYShow Entity nodes.- See Also:
-
SHOW_PROCESSING_INSTRUCTION
public static final int SHOW_PROCESSING_INSTRUCTIONShow ProcessingInstruction nodes.- See Also:
-
SHOW_COMMENT
public static final int SHOW_COMMENTShow Comment nodes.- See Also:
-
SHOW_DOCUMENT
public static final int SHOW_DOCUMENTShow Document nodes.- See Also:
-
SHOW_DOCUMENT_TYPE
public static final int SHOW_DOCUMENT_TYPEShow DocumentType nodes.- See Also:
-
SHOW_DOCUMENT_FRAGMENT
public static final int SHOW_DOCUMENT_FRAGMENTShow DocumentFragment nodes.- See Also:
-
SHOW_NOTATION
public static final int SHOW_NOTATIONShow Notation nodes. Only useful when creating a TreeWalker with a Notation node as its root.- See Also:
-
-
Constructor Details
-
NodeFilter
public NodeFilter()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.
-