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 intAccept the node.static final intReject the node.static final intSkip the node.static final longShow all nodes.static final intShow Attr nodes.static final intShow CDATASection nodes.static final intShow Comment nodes.static final intShow Document nodes.static final intShow DocumentFragment nodes.static final intShow DocumentType nodes.static final intShow Element nodes.static final intShow Entity nodes.static final intShow EntityReference nodes.static final intShow Notation nodes.static final intShow ProcessingInstruction nodes.static final intShow Text nodes.Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields 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, setupRejectedPromiseMethods 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.
-