public class Aggregator extends BodyTransformer
Constructor and Description |
---|
Aggregator(Singletons.Global g) |
Modifier and Type | Method and Description |
---|---|
protected void |
internalTransform(Body b,
java.lang.String phaseName,
java.util.Map<java.lang.String,java.lang.String> options)
Traverse the statements in the given body, looking for aggregation
possibilities; that is, given a def d and a use u, d has no other uses, u
has no other defs, collapse d and u.
|
static Aggregator |
v() |
transform, transform, transform
public static Aggregator v()
protected void internalTransform(Body b, java.lang.String phaseName, java.util.Map<java.lang.String,java.lang.String> options)
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.