code: public void calcScore()
    {
  
      if ((getPredicateCount() > 0) || (null != m_relativePathPattern))
      {
        m_score = SCORE_OTHER;
      }
      else
        super.calcScore();
  
      if (null == m_targetString)
        calcTargetString();
    }
docs: Static calc of match score.