public class TaskNode extends AstNode
Modifier and Type | Method and Description |
---|---|
void |
accept(TaskVisitor visitor)
Walk the AST for the parsed task, calling the visitor for each element of interest.
|
String |
getName() |
List<LabelledTaskNode> |
getSequences() |
LabelledTaskNode |
getSequenceWithLabel(String label)
Find the sequence with the specified label and return it.
|
LabelledTaskNode |
getStart()
Shortcut to return the first node in the first sequence.
|
TaskAppNode |
getTaskApp() |
List<TaskApp> |
getTaskApps() |
static String |
getTaskPrefix(String taskName)
Create the prefix to be added to task names created for task app references in
composed task DSL.
|
String |
getTaskText() |
boolean |
isComposed() |
String |
stringify(boolean includePositionInfo) |
String |
toDSL() |
String |
toExecutableDSL() |
Graph |
toGraph() |
String |
toString() |
List<TaskValidationProblem> |
validate() |
getEndPos, getStartPos, stringify
public static String getTaskPrefix(String taskName)
taskName
- the name of the composed taskpublic String stringify(boolean includePositionInfo)
public void accept(TaskVisitor visitor)
TaskVisitor
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<TaskValidationProblem> validate()
public String getName()
public String getTaskText()
public LabelledTaskNode getStart()
public List<LabelledTaskNode> getSequences()
public LabelledTaskNode getSequenceWithLabel(String label)
label
- the label to search forpublic String toDSL()
public String toExecutableDSL()
public boolean isComposed()
public TaskAppNode getTaskApp()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.