1 20 21 package net.innig.macker.rule; 22 23 import net.innig.macker.structure.ClassInfo; 24 25 public interface Pattern 26 { 27 public static final Pattern ALL = 28 new Pattern() 29 { 30 public boolean matches(EvaluationContext context, ClassInfo classInfo) 31 { return true; } 32 public String toString() { return "<all>"; } 33 }; 34 35 public static final Pattern NONE = 36 new Pattern() 37 { 38 public boolean matches(EvaluationContext context, ClassInfo classInfo) 39 { return false; } 40 public String toString() { return "<none>"; } 41 }; 42 43 public boolean matches(EvaluationContext context, ClassInfo classInfo) 44 throws RulesException; 45 } 46 | Popular Tags |