public class SearchNodeFactory extends Object
| Constructor and Description |
|---|
SearchNodeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static List<SearchNode> |
findSearchNodes(DOMNode node,
String prefix,
boolean multiple,
SearchNode.Direction direction)
Returns all search node of the given DOM
node. |
static SearchNode |
getSearchNodeAt(DOMNode node,
int offset,
String prefix,
boolean multiple,
SearchNode.Direction direction)
Returns the search node in the given DOM
node at the given
offset and null otherwise. |
public static List<SearchNode> findSearchNodes(DOMNode node, String prefix, boolean multiple, SearchNode.Direction direction)
node.
will return the search nodes #abc and #def.
node - the DOM node.prefix - the prefix.multiple - true if multiple is supported.direction - the search node direction.node.public static SearchNode getSearchNodeAt(DOMNode node, int offset, String prefix, boolean multiple, SearchNode.Direction direction)
node at the given
offset and null otherwise.
will return the search node #def.
node - the DOM node.offset - the offset.prefix - the prefix.multiple - true if multiple is supported.direction - the search node direction.node at the given
offset and null otherwise.Copyright © 2023. All rights reserved.