コード例 #1
0
 public MatchListener getMatchListener(NodeProxy proxy) {
   boolean needToFilter = false;
   Match nextMatch = proxy.getMatches();
   while (nextMatch != null) {
     if (nextMatch.getIndexId() == FTIndex.ID) {
       needToFilter = true;
       break;
     }
     nextMatch = nextMatch.getNextMatch();
   }
   if (!needToFilter) return null;
   if (matchListener == null) matchListener = new FTMatchListener(proxy);
   else matchListener.reset(proxy);
   return matchListener;
 }