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)
TaskVisitor
startVisit
in class TaskVisitor
taskName
- the name of the task definitiontaskDsl
- the textual definition of the AST being visitedpublic boolean preVisitSequence(LabelledTaskNode firstNode, int sequenceNumber)
preVisitSequence
in class TaskVisitor
firstNode
- the first node in the sequencesequenceNumber
- the sequence number, where the primary sequence is 0public boolean preVisit(SplitNode split)
preVisit
in class TaskVisitor
split
- the split which represents things to execute in parallelpublic void visit(TaskAppNode taskApp)
visit
in class TaskVisitor
public void visit(TransitionNode transition)
visit
in class TaskVisitor
public void endVisit()
TaskVisitor
endVisit
in class TaskVisitor
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.