1 4 package com.tc.object.config; 5 6 import com.tc.aspectwerkz.reflect.ClassInfo; 7 8 import java.util.ArrayList ; 9 import java.util.Collection ; 10 import java.util.Iterator ; 11 12 public class CompoundExpressionMatcher implements ClassExpressionMatcher { 13 14 private final Collection matchers = new ArrayList (); 15 16 public boolean match(ClassInfo classInfo) { 17 for(Iterator i = matchers.iterator(); i.hasNext();) { 18 if (((ClassExpressionMatcher)i.next()).match(classInfo)) { 19 return true; 20 } 21 } 22 return false; 23 } 24 25 public void add(ClassExpressionMatcher matcher) { 26 matchers.add(matcher); 27 } 28 29 } 30 | Popular Tags |