Class SearchNodeFactory
java.lang.Object
org.eclipse.lemminx.extensions.references.search.SearchNodeFactory
Search node factory.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SearchNode>findSearchNodes(DOMNode node, String prefix, boolean multiple, SearchNode.Direction direction) Returns all search node of the given DOMnode.static SearchNodegetSearchNodeAt(DOMNode node, int offset, String prefix, boolean multiple, SearchNode.Direction direction) Returns the search node in the given DOMnodeat the givenoffsetand null otherwise.
-
Constructor Details
-
SearchNodeFactory
public SearchNodeFactory()
-
-
Method Details
-
findSearchNodes
public static List<SearchNode> findSearchNodes(DOMNode node, String prefix, boolean multiple, SearchNode.Direction direction) Returns all search node of the given DOMnode.will return the search nodes #abc and #def.- Parameters:
node- the DOM node.prefix- the prefix.multiple- true if multiple is supported.direction- the search node direction.- Returns:
- all search node of the given DOM
node.
-
getSearchNodeAt
public static SearchNode getSearchNodeAt(DOMNode node, int offset, String prefix, boolean multiple, SearchNode.Direction direction) Returns the search node in the given DOMnodeat the givenoffsetand null otherwise.will return the search node #def.- Parameters:
node- the DOM node.offset- the offset.prefix- the prefix.multiple- true if multiple is supported.direction- the search node direction.- Returns:
- the search node in the given DOM
nodeat the givenoffsetand null otherwise.
-