public abstract class TagAggregator extends BodyTransformer
Constructor and Description |
---|
TagAggregator() |
Modifier and Type | Method and Description |
---|---|
abstract String |
aggregatedName()
Return name of the resulting aggregated tag.
|
abstract void |
considerTag(Tag t,
Unit u,
LinkedList<Tag> tags,
LinkedList<Unit> units)
Aggregate the given tag assigned to the given unit
|
void |
fini()
Called after all tags for a method have been aggregated.
|
protected void |
internalTransform(Body b,
String phaseName,
Map<String,String> options)
This method is called to perform the transformation itself.
|
abstract boolean |
wantTag(Tag t)
Decide whether this tag should be aggregated by this aggregator.
|
transform, transform, transform
public abstract boolean wantTag(Tag t)
public abstract void considerTag(Tag t, Unit u, LinkedList<Tag> tags, LinkedList<Unit> units)
public abstract String aggregatedName()
protected void internalTransform(Body b, String phaseName, Map<String,String> options)
BodyTransformer
internalTransform
in class BodyTransformer
b
- the body on which to apply the transformationphaseName
- the phasename for this transform; not typically used by implementations.options
- the actual computed options; a combination of default options and Scene specified options.public void fini()