use of com.tngtech.archunit.core.importer.DomainBuilders.JavaFieldAccessBuilder in project ArchUnit by TNG.
the class ClassGraphCreator method createFieldAccessesFor.
@Override
public Set<JavaFieldAccess> createFieldAccessesFor(JavaCodeUnit codeUnit, Set<TryCatchBlockBuilder> tryCatchBlockBuilders) {
ImmutableSet.Builder<JavaFieldAccess> result = ImmutableSet.builder();
for (FieldAccessRecord record : processedFieldAccessRecords.get(codeUnit)) {
JavaFieldAccess access = accessBuilderFrom(new JavaFieldAccessBuilder(), record).withAccessType(record.getAccessType()).build();
result.add(access);
handlePossibleTryBlockAccess(tryCatchBlockBuilders, record, access);
}
return result.build();
}
Aggregations