T
- the type of the context objects flowing across the visitpublic abstract class JobSpecificationVisitor<T>
extends java.lang.Object
Constructor and Description |
---|
JobSpecificationVisitor() |
Modifier and Type | Method and Description |
---|---|
protected void |
accept(JobSpecification jobSpec)
Called to start a visit of a specific JobSpec.
|
void |
postJobSpecWalk(T context,
JobSpecification jobSpec)
Override to provide code that will run just after the visit completes.
|
T |
preJobSpecWalk()
Override to provide code that will run just before the visit starts.
|
abstract T |
walk(T context,
Flow jobSeries)
Visit a sequence of jobs (flow).
|
abstract T |
walk(T context,
JobDefinition jobDefinition) |
T |
walk(T context,
JobNode jn) |
abstract T |
walk(T context,
JobReference jobReference) |
abstract T |
walk(T context,
Split jobSeries) |
protected void accept(JobSpecification jobSpec)
public T preJobSpecWalk()
public void postJobSpecWalk(T context, JobSpecification jobSpec)
context
- the final context computed by the last of the main visit operationsjobSpec
- the job specification being visitedpublic abstract T walk(T context, Flow jobSeries)
context
- any context this visitor is passing during visitsjobSeries
- a JobNode representing a series of jobs run in sequencepublic abstract T walk(T context, JobDefinition jobDefinition)
public abstract T walk(T context, JobReference jobReference)