use of com.tngtech.archunit.core.importer.DomainBuilders.JavaConstructorCallBuilder in project ArchUnit by TNG.
the class ClassGraphCreator method createConstructorCallsFor.
@Override
public Set<JavaConstructorCall> createConstructorCallsFor(JavaCodeUnit codeUnit, Set<TryCatchBlockBuilder> tryCatchBlockBuilders) {
ImmutableSet.Builder<JavaConstructorCall> result = ImmutableSet.builder();
for (AccessRecord<ConstructorCallTarget> record : processedConstructorCallRecords.get(codeUnit)) {
JavaConstructorCall call = accessBuilderFrom(new JavaConstructorCallBuilder(), record).build();
result.add(call);
handlePossibleTryBlockAccess(tryCatchBlockBuilders, record, call);
}
return result.build();
}
Aggregations