public class ComposedTaskNode extends AstNode
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ComposedTaskVisitor visitor)
Walk the AST for the parsed composed task, calling the visitor for each element of interest.
|
String |
getComposedTaskText() |
String |
getName() |
List<LabelledComposedTaskNode> |
getSequences() |
LabelledComposedTaskNode |
getSequenceWithLabel(String label)
Find the sequence with the specified label and return it.
|
LabelledComposedTaskNode |
getStart()
Shortcut to return the first node in the first sequence.
|
Set<String> |
getTaskApps() |
String |
stringify(boolean includePositionInfo) |
String |
toDSL() |
Graph |
toGraph() |
String |
toString() |
List<ComposedTaskValidationProblem> |
validate() |
getEndPos, getStartPos, stringifypublic String stringify(boolean includePositionInfo)
public void accept(ComposedTaskVisitor visitor)
ComposedTaskVisitor for all the events that can be received, since that is an
abstract class it can be extended and subclasses only need override methods to receive the
events of interest.visitor - a visitor to be called as the AST is walkedpublic Graph toGraph()
public List<ComposedTaskValidationProblem> validate()
public String getName()
public String getComposedTaskText()
public LabelledComposedTaskNode getStart()
public List<LabelledComposedTaskNode> getSequences()
public LabelledComposedTaskNode getSequenceWithLabel(String label)
label - the label to search forpublic String toDSL()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.