Class SearchQueryFactory
java.lang.Object
org.eclipse.lemminx.extensions.references.search.SearchQueryFactory
XML references search Query factory.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchQuerycreateFromQuery(DOMNode node, int offset, XMLReferencesSettings settings) static SearchQuerycreateQuery(DOMNode node, int offset, XMLReferencesSettings settings) static SearchQuerycreateQuery(DOMNode node, int offset, XMLReferencesSettings settings, SearchQuery.QueryDirection direction) static SearchQuerycreateQuery(DOMNode node, XMLReferencesSettings settings, SearchQuery.QueryDirection direction) static SearchQuerycreateToQuery(DOMNode node, int offset, XMLReferencesSettings settings) static SearchQuerycreateToQueryByRetrievingToBefore(DOMNode node, int offset, XMLReferencesSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) static SearchNode.DirectiongetDirection(DOMNode node, XMLReferenceExpression expression, SearchQuery.QueryDirection queryDirection) Returns the direction of the given node according the given expression and query direction.static SearchNode.DirectiongetInversedDirection(DOMNode node, XMLReferenceExpression expression, SearchQuery.QueryDirection direction) Returns the inversed direction of the given node according the given expression and query direction.
-
Constructor Details
-
SearchQueryFactory
public SearchQueryFactory()
-
-
Method Details
-
getInversedDirection
public static SearchNode.Direction getInversedDirection(DOMNode node, XMLReferenceExpression expression, SearchQuery.QueryDirection direction) Returns the inversed direction of the given node according the given expression and query direction.- Parameters:
node- the DOM node.expression- the reference expression.queryDirection- the query direction.- Returns:
- the inversed direction of the given node according the given expression and query direction.
-
getDirection
public static SearchNode.Direction getDirection(DOMNode node, XMLReferenceExpression expression, SearchQuery.QueryDirection queryDirection) Returns the direction of the given node according the given expression and query direction.- Parameters:
node- the DOM node.expression- the reference expression.queryDirection- the query direction.- Returns:
- the direction of the given node according the given expression and query direction.
-
createQuery
-
createFromQuery
-
createToQuery
-
createToQueryByRetrievingToBefore
public static SearchQuery createToQueryByRetrievingToBefore(DOMNode node, int offset, XMLReferencesSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
createQuery
public static SearchQuery createQuery(DOMNode node, XMLReferencesSettings settings, SearchQuery.QueryDirection direction) -
createQuery
public static SearchQuery createQuery(DOMNode node, int offset, XMLReferencesSettings settings, SearchQuery.QueryDirection direction)
-