Search in sources :

Example 1 with JavaMethodCallBuilder

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();
}
Also used : MethodCallTarget(com.tngtech.archunit.core.domain.AccessTarget.MethodCallTarget) ImmutableSet(com.google.common.collect.ImmutableSet) JavaMethodCallBuilder(com.tngtech.archunit.core.importer.DomainBuilders.JavaMethodCallBuilder) JavaMethodCall(com.tngtech.archunit.core.domain.JavaMethodCall)

Aggregations

ImmutableSet (com.google.common.collect.ImmutableSet)1 MethodCallTarget (com.tngtech.archunit.core.domain.AccessTarget.MethodCallTarget)1 JavaMethodCall (com.tngtech.archunit.core.domain.JavaMethodCall)1 JavaMethodCallBuilder (com.tngtech.archunit.core.importer.DomainBuilders.JavaMethodCallBuilder)1