private boolean excluded(ArrayList instructions, String pkg) { for (Iterator i = instructions.iterator(); i.hasNext(); ) { Instruction f = (Instruction) i.next(); if (f.matches(pkg)) { return f.isNegated(); } } return true; }
boolean matches(String text) { boolean result; if (null == text) { result = m_instruction.matches(m_defaultValue); } else { result = m_instruction.matches(text); } return m_instruction.isNegated() ? !result : result; }