1 20 21 package net.innig.macker.event; 22 23 import net.innig.macker.rule.AccessRule; 24 import net.innig.macker.structure.ClassInfo; 25 26 import java.util.List ; 27 28 public class AccessRuleViolation 29 extends MackerEvent 30 { 31 public AccessRuleViolation( 32 AccessRule accessRule, 33 ClassInfo from, 34 ClassInfo to, 35 List messages) 36 { 37 super(accessRule, 38 "Illegal reference" + CR + " from " + from + CR 40 + " to " + to, 41 messages); 42 this.accessRule = accessRule; 43 this.from = from; 44 this.to = to; 45 } 46 47 public final AccessRule getAccessRule() 48 { return accessRule; } 49 50 public final ClassInfo getFrom() 51 { return from; } 52 53 public final ClassInfo getTo() 54 { return to; } 55 56 private final AccessRule accessRule; 57 private final ClassInfo from, to; 58 private static final String CR = System.getProperty("line.separator"); 59 } 60 | Popular Tags |