Class EvaluationResult


  • public final class EvaluationResult
    extends java.lang.Object
    Represents the result of evaluating an ArchRule against some JavaClasses. To react to failures during evaluation of the rule, one can use handleViolations(ViolationHandler):

    
     result.handleViolations(new ViolationHandler<JavaAccess<?>>() {
         @Override
         public void handle(Collection<JavaAccess<?>> violatingObjects, String message) {
             // do some reporting or react in any way to violation
         }
     });