public class AnnotateGraphTransformer extends RecursiveGraphTransformer<ElementGraph>
Modifier and Type | Field and Description |
---|---|
protected GraphTransformer |
graphTransformer |
DEFAULT_TRANSFORM_RECURSION_DEPTH_MAX, TRANSFORM_RECURSION_DEPTH_MAX
Constructor and Description |
---|
AnnotateGraphTransformer(ExpressionGraph match,
ElementAnnotation annotation) |
AnnotateGraphTransformer(GraphTransformer graphTransformer,
ExpressionGraph match,
ElementAnnotation annotation) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<FlowElement> |
addExclusions(ElementGraph graph) |
protected ElementGraph |
prepareForMatch(ProcessLogger processLogger,
Transformed<ElementGraph> transformed,
ElementGraph graph) |
protected boolean |
requiresRecursiveSearch()
By default, prepareForMatch returns the same graph, but sub-classes may return a sub-graph, one of many
requiring sub-sequent matches.
|
protected boolean |
transformGraphInPlaceUsing(Transformed<ElementGraph> transformed,
ElementGraph graph,
Match match) |
transform, transform
transform
protected final GraphTransformer graphTransformer
public AnnotateGraphTransformer(ExpressionGraph match, ElementAnnotation annotation)
public AnnotateGraphTransformer(GraphTransformer graphTransformer, ExpressionGraph match, ElementAnnotation annotation)
protected boolean requiresRecursiveSearch()
RecursiveGraphTransformer
if we are searching the whole graph, there is no need to perform a recursion against the new transformed graph
requiresRecursiveSearch
in class RecursiveGraphTransformer<ElementGraph>
protected ElementGraph prepareForMatch(ProcessLogger processLogger, Transformed<ElementGraph> transformed, ElementGraph graph)
prepareForMatch
in class RecursiveGraphTransformer<ElementGraph>
protected java.util.Set<FlowElement> addExclusions(ElementGraph graph)
addExclusions
in class RecursiveGraphTransformer<ElementGraph>
protected boolean transformGraphInPlaceUsing(Transformed<ElementGraph> transformed, ElementGraph graph, Match match)
transformGraphInPlaceUsing
in class RecursiveGraphTransformer<ElementGraph>
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.