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:
java.io.Serializable,java.lang.Cloneable,org.htmlunit.corejs.javascript.ConstProperties,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
public class NodeFilter extends HtmlUnitScriptable
A JavaScript object forNodeFilter.- See Also:
- DOM-Level-2-Traversal-Range, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intFILTER_ACCEPTAccept the node.static intFILTER_REJECTReject the node.static intFILTER_SKIPSkip the node.static longSHOW_ALLShow all nodes.static intSHOW_ATTRIBUTEShow Attr nodes.static intSHOW_CDATA_SECTIONShow CDATASection nodes.static intSHOW_COMMENTShow Comment nodes.static intSHOW_DOCUMENTShow Document nodes.static intSHOW_DOCUMENT_FRAGMENTShow DocumentFragment nodes.static intSHOW_DOCUMENT_TYPEShow DocumentType nodes.static intSHOW_ELEMENTShow Element nodes.static intSHOW_ENTITYShow Entity nodes.static intSHOW_ENTITY_REFERENCEShow EntityReference nodes.static intSHOW_NOTATIONShow Notation nodes.static intSHOW_PROCESSING_INSTRUCTIONShow ProcessingInstruction nodes.static intSHOW_TEXTShow Text nodes.
-
Constructor Summary
Constructors Constructor Description NodeFilter()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidjsConstructor()JavaScript constructor.-
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 Detail
-
FILTER_ACCEPT
public static final int FILTER_ACCEPT
Accept the node.- See Also:
- Constant Field Values
-
FILTER_REJECT
public static final int FILTER_REJECT
Reject the node.- See Also:
- Constant Field Values
-
FILTER_SKIP
public static final int FILTER_SKIP
Skip the node.- See Also:
- Constant Field Values
-
SHOW_ALL
public static final long SHOW_ALL
Show all nodes.- See Also:
- Constant Field Values
-
SHOW_ELEMENT
public static final int SHOW_ELEMENT
Show Element nodes.- See Also:
- Constant Field Values
-
SHOW_ATTRIBUTE
public static final int SHOW_ATTRIBUTE
Show Attr nodes. Only useful when creating a TreeWalker with an attribute node as its root.- See Also:
- Constant Field Values
-
SHOW_TEXT
public static final int SHOW_TEXT
Show Text nodes.- See Also:
- Constant Field Values
-
SHOW_CDATA_SECTION
public static final int SHOW_CDATA_SECTION
Show CDATASection nodes.- See Also:
- Constant Field Values
-
SHOW_ENTITY_REFERENCE
public static final int SHOW_ENTITY_REFERENCE
Show EntityReference nodes.- See Also:
- Constant Field Values
-
SHOW_ENTITY
public static final int SHOW_ENTITY
Show Entity nodes.- See Also:
- Constant Field Values
-
SHOW_PROCESSING_INSTRUCTION
public static final int SHOW_PROCESSING_INSTRUCTION
Show ProcessingInstruction nodes.- See Also:
- Constant Field Values
-
SHOW_COMMENT
public static final int SHOW_COMMENT
Show Comment nodes.- See Also:
- Constant Field Values
-
SHOW_DOCUMENT
public static final int SHOW_DOCUMENT
Show Document nodes.- See Also:
- Constant Field Values
-
SHOW_DOCUMENT_TYPE
public static final int SHOW_DOCUMENT_TYPE
Show DocumentType nodes.- See Also:
- Constant Field Values
-
SHOW_DOCUMENT_FRAGMENT
public static final int SHOW_DOCUMENT_FRAGMENT
Show DocumentFragment nodes.- See Also:
- Constant Field Values
-
SHOW_NOTATION
public static final int SHOW_NOTATION
Show Notation nodes. Only useful when creating a TreeWalker with a Notation node as its root.- See Also:
- Constant Field Values
-
-