public class CreationCollector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
CreationCollector.StatementPair<X> |
Modifier and Type | Field and Description |
---|---|
private AnonymousClassUsage |
anonymousClassUsage |
private java.util.List<Pair<LValue,CreationCollector.StatementPair<MemberFunctionInvokation>>> |
collectedConstructions |
private java.util.Map<LValue,java.util.List<StatementContainer>> |
collectedCreations |
Constructor and Description |
---|
CreationCollector(AnonymousClassUsage anonymousClassUsage) |
Modifier and Type | Method and Description |
---|---|
void |
collectConstruction(Expression expression,
MemberFunctionInvokation rValue,
StatementContainer container) |
void |
collectCreation(LValue lValue,
Expression rValue,
StatementContainer container) |
void |
condenseConstructions(Method method,
DCCommonState dcCommonState) |
private void |
markConstruction(LValue lValue,
MemberFunctionInvokation rValue,
StatementContainer container) |
private void |
moveDupPostCreation(LValue lValue,
StatementContainer oldCreation,
StatementContainer oldConstruction) |
private final java.util.List<Pair<LValue,CreationCollector.StatementPair<MemberFunctionInvokation>>> collectedConstructions
private final java.util.Map<LValue,java.util.List<StatementContainer>> collectedCreations
private final AnonymousClassUsage anonymousClassUsage
public CreationCollector(AnonymousClassUsage anonymousClassUsage)
public void collectCreation(LValue lValue, Expression rValue, StatementContainer container)
public void collectConstruction(Expression expression, MemberFunctionInvokation rValue, StatementContainer container)
private void markConstruction(LValue lValue, MemberFunctionInvokation rValue, StatementContainer container)
public void condenseConstructions(Method method, DCCommonState dcCommonState)
private void moveDupPostCreation(LValue lValue, StatementContainer oldCreation, StatementContainer oldConstruction)