public class NodeFilter extends SimpleScriptable
NodeFilter.| Modifier and Type | Field and Description |
|---|---|
static short |
FILTER_ACCEPT
Accept the node.
|
static short |
FILTER_REJECT
Reject the node.
|
static short |
FILTER_SKIP
Skip the node.
|
static long |
SHOW_ALL
Show all nodes.
|
static int |
SHOW_ATTRIBUTE
Show Attr nodes.
|
static int |
SHOW_CDATA_SECTION
Show CDATASection nodes.
|
static int |
SHOW_COMMENT
Show Comment nodes.
|
static int |
SHOW_DOCUMENT
Show Document nodes.
|
static int |
SHOW_DOCUMENT_FRAGMENT
Show DocumentFragment nodes.
|
static int |
SHOW_DOCUMENT_TYPE
Show DocumentType nodes.
|
static int |
SHOW_ELEMENT
Show Element nodes.
|
static int |
SHOW_ENTITY
Show Entity nodes.
|
static int |
SHOW_ENTITY_REFERENCE
Show EntityReference nodes.
|
static int |
SHOW_NOTATION
Show Notation nodes.
|
static int |
SHOW_PROCESSING_INSTRUCTION
Show ProcessingInstruction nodes.
|
static int |
SHOW_TEXT
Show Text nodes.
|
| Constructor and Description |
|---|
NodeFilter()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
short |
acceptNode(Node n)
Test whether a specified node is visible in the logical view of a
TreeWalker.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic static final short FILTER_ACCEPT
public static final short FILTER_REJECT
public static final short FILTER_SKIP
public static final long SHOW_ALL
public static final int SHOW_ELEMENT
public static final int SHOW_ATTRIBUTE
public static final int SHOW_TEXT
public static final int SHOW_CDATA_SECTION
public static final int SHOW_ENTITY_REFERENCE
public static final int SHOW_ENTITY
public static final int SHOW_PROCESSING_INSTRUCTION
public static final int SHOW_COMMENT
public static final int SHOW_DOCUMENT
public static final int SHOW_DOCUMENT_TYPE
public static final int SHOW_DOCUMENT_FRAGMENT
public static final int SHOW_NOTATION
public short acceptNode(Node n)
n - The node to check to see if it passes the filter or not.Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.