public class ComposedTaskValidatorVisitor extends ComposedTaskVisitor
| Constructor and Description |
|---|
ComposedTaskValidatorVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisit()
The last call made to a visitor.
|
List<ComposedTaskValidationProblem> |
getProblems() |
boolean |
hasProblems() |
void |
postVisit(SplitNode split) |
void |
postVisit(TaskAppNode taskApp) |
void |
postVisit(TransitionNode transition) |
boolean |
preVisit(SplitNode split) |
boolean |
preVisit(TaskAppNode taskApp)
This preVisit/visit/postVisit sequence for taskApp is not invoked for inlined references to apps
in transitions, for example: appA 0->:foo 1->appB.
|
boolean |
preVisit(TransitionNode transition)
After visit(TaskAppNode) and before postVisit(TaskAppNode) the transitions (if there
are any) are visited for that task app.
|
boolean |
preVisitSequence(LabelledComposedTaskNode firstNode,
int sequenceNumber) |
void |
reset() |
void |
startVisit(String composedTaskText)
The first call made to a visitor.
|
void |
visit(SplitNode split) |
void |
visit(TaskAppNode taskApp) |
void |
visit(TransitionNode transition) |
postVisit, postVisitSequence, preVisit, visitpublic List<ComposedTaskValidationProblem> getProblems()
public boolean hasProblems()
public void reset()
public void startVisit(String composedTaskText)
ComposedTaskVisitorstartVisit in class ComposedTaskVisitorcomposedTaskText - the textual definition of the AST being visitedpublic boolean preVisitSequence(LabelledComposedTaskNode firstNode, int sequenceNumber)
preVisitSequence in class ComposedTaskVisitorfirstNode - the first node in the sequencesequenceNumber - the sequence number, where the primary sequence is 0public boolean preVisit(SplitNode split)
preVisit in class ComposedTaskVisitorsplit - the split which represents things to execute in parallelpublic void visit(SplitNode split)
visit in class ComposedTaskVisitorpublic void postVisit(SplitNode split)
postVisit in class ComposedTaskVisitorpublic boolean preVisit(TaskAppNode taskApp)
ComposedTaskVisitorpreVisit in class ComposedTaskVisitortaskApp - the use of a task app in a composed task dslpublic void visit(TaskAppNode taskApp)
visit in class ComposedTaskVisitorpublic void postVisit(TaskAppNode taskApp)
postVisit in class ComposedTaskVisitorpublic boolean preVisit(TransitionNode transition)
ComposedTaskVisitorpreVisit in class ComposedTaskVisitortransition - the transitionpublic void visit(TransitionNode transition)
visit in class ComposedTaskVisitorpublic void postVisit(TransitionNode transition)
postVisit in class ComposedTaskVisitorpublic void endVisit()
ComposedTaskVisitorendVisit in class ComposedTaskVisitorCopyright © 2017 Pivotal Software, Inc.. All rights reserved.