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