Logo Search packages:      
Sourcecode: jmk version File versions  Download package

boolean edu::neu::ccs::jmk::Make::tryPatterns ( Rule  rule  )  [inline, package]

This method checks the patterns in a reverse order to see if one is applicable to the given rule.

true if a pattern matched

Definition at line 78 of file Make.java.

References edu::neu::ccs::jmk::Pattern::merge().

Referenced by edu::neu::ccs::jmk::Rule::checkPatterns().

    for (int i = patterns.size() - 1; i >= 0; i--) {
      Pattern pattern = (Pattern)patterns.elementAt(i);
      if (pattern.merge(rule))
      return true;
    return false;

Generated by  Doxygen 1.6.0   Back to index