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