Interface AstNodeService
-
- All Superinterfaces:
org.mule.dx.platform.api.component.ComponentLifecycle,LanguageServerLifecycle,WeaveService
public interface AstNodeService extends WeaveService
DataWeave Service to retrieveDWAstNodefrom a uri project file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<org.mule.weave.v2.api.tooling.ast.DWAstNode>nodeAt(java.lang.String uri, org.eclipse.lsp4j.Range range)Given aStringthat references a project file URI and aRangefor the givenDWAstNodeKind, it parses the script and generates theDWAstNodefor the expected kind.org.eclipse.lsp4j.MarkupContenttoMarkupContent(java.lang.String weaveDoc)Given a weaveDoc it creates aMarkupContentin mark down format.-
Methods inherited from interface org.mule.weave.extension.api.lifecycle.LanguageServerLifecycle
initialize, initialized, shutdown
-
Methods inherited from interface org.mule.weave.extension.api.services.WeaveService
start, stop
-
-
-
-
Method Detail
-
nodeAt
java.util.Optional<org.mule.weave.v2.api.tooling.ast.DWAstNode> nodeAt(java.lang.String uri, org.eclipse.lsp4j.Range range)Given aStringthat references a project file URI and aRangefor the givenDWAstNodeKind, it parses the script and generates theDWAstNodefor the expected kind. This method will apply the scope or type checking phases.- Parameters:
uri- file URI to be parsed.range- The range.- Returns:
- an
OptionalofDWAstNodeif there is a node at the given location.
-
toMarkupContent
org.eclipse.lsp4j.MarkupContent toMarkupContent(java.lang.String weaveDoc)
Given a weaveDoc it creates aMarkupContentin mark down format.- Parameters:
weaveDoc- The weave documentation to transform.- Returns:
- The created
MarkupContentin mark down format.
-
-