public class TaskValidatorVisitor extends TaskVisitor
| Constructor and Description |
|---|
TaskValidatorVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisit()
The last call made to a visitor.
|
List<TaskValidationProblem> |
getProblems() |
boolean |
hasProblems() |
boolean |
preVisit(SplitNode split) |
boolean |
preVisitSequence(LabelledTaskNode firstNode,
int sequenceNumber) |
void |
reset() |
void |
startVisit(String taskName,
String taskDsl)
The first call made to a visitor.
|
void |
visit(TaskAppNode taskApp) |
void |
visit(TransitionNode transition) |
public List<TaskValidationProblem> getProblems()
public boolean hasProblems()
public void reset()
public void startVisit(String taskName, String taskDsl)
TaskVisitorstartVisit in class TaskVisitortaskName - the name of the task definitiontaskDsl - the textual definition of the AST being visitedpublic boolean preVisitSequence(LabelledTaskNode firstNode, int sequenceNumber)
preVisitSequence in class TaskVisitorfirstNode - the first node in the sequencesequenceNumber - the sequence number, where the primary sequence is 0public boolean preVisit(SplitNode split)
preVisit in class TaskVisitorsplit - the split which represents things to execute in parallelpublic void visit(TaskAppNode taskApp)
visit in class TaskVisitorpublic void visit(TransitionNode transition)
visit in class TaskVisitorpublic void endVisit()
TaskVisitorendVisit in class TaskVisitorCopyright © 2019 Pivotal Software, Inc.. All rights reserved.