Class CreationCollector
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.parse.utils.CreationCollector
This is all a bit ugly, with the random casting going on. But I think probably it would be worse to use
a multiple indirection visitor....
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnonymousClassUsage
private final List<Pair<LValue,
CreationCollector.StatementPair<MemberFunctionInvokation>>> private final Map<LValue,
List<StatementContainer>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Field Details
-
collectedConstructions
private final List<Pair<LValue,CreationCollector.StatementPair<MemberFunctionInvokation>>> collectedConstructions -
collectedCreations
-
anonymousClassUsage
-
-
Constructor Details
-
CreationCollector
-
-
Method Details
-
collectCreation
-
collectConstruction
public void collectConstruction(Expression expression, MemberFunctionInvokation rValue, StatementContainer container) -
markConstruction
private void markConstruction(LValue lValue, MemberFunctionInvokation rValue, StatementContainer container) -
condenseConstructions
-
moveDupPostCreation
private void moveDupPostCreation(LValue lValue, StatementContainer oldCreation, StatementContainer oldConstruction)
-