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

public class NodeFilter extends HtmlUnitScriptable
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

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    JavaScript constructor.

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FILTER_ACCEPT

      public static final int FILTER_ACCEPT
      Accept the node.
      See Also:
    • FILTER_REJECT

      public static final int FILTER_REJECT
      Reject the node.
      See Also:
    • FILTER_SKIP

      public static final int FILTER_SKIP
      Skip the node.
      See Also:
    • SHOW_ALL

      public static final long SHOW_ALL
      Show all nodes.
      See Also:
    • SHOW_ELEMENT

      public static final int SHOW_ELEMENT
      Show Element nodes.
      See Also:
    • 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:
    • SHOW_TEXT

      public static final int SHOW_TEXT
      Show Text nodes.
      See Also:
    • SHOW_CDATA_SECTION

      public static final int SHOW_CDATA_SECTION
      Show CDATASection nodes.
      See Also:
    • SHOW_ENTITY_REFERENCE

      public static final int SHOW_ENTITY_REFERENCE
      Show EntityReference nodes.
      See Also:
    • SHOW_ENTITY

      public static final int SHOW_ENTITY
      Show Entity nodes.
      See Also:
    • SHOW_PROCESSING_INSTRUCTION

      public static final int SHOW_PROCESSING_INSTRUCTION
      Show ProcessingInstruction nodes.
      See Also:
    • SHOW_COMMENT

      public static final int SHOW_COMMENT
      Show Comment nodes.
      See Also:
    • SHOW_DOCUMENT

      public static final int SHOW_DOCUMENT
      Show Document nodes.
      See Also:
    • SHOW_DOCUMENT_TYPE

      public static final int SHOW_DOCUMENT_TYPE
      Show DocumentType nodes.
      See Also:
    • SHOW_DOCUMENT_FRAGMENT

      public static final int SHOW_DOCUMENT_FRAGMENT
      Show DocumentFragment nodes.
      See Also:
    • 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:
  • Constructor Details

    • NodeFilter

      public NodeFilter()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.