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