1 15 package org.apache.hivemind.methodmatch; 16 17 import org.apache.hivemind.service.MethodSignature; 18 19 24 public class NameSuffixFilter extends MethodFilter 25 { 26 private String _nameSuffix; 27 28 public NameSuffixFilter(String nameSuffix) 29 { 30 _nameSuffix = nameSuffix; 31 } 32 33 public boolean matchMethod(MethodSignature sig) 34 { 35 return sig.getName().endsWith(_nameSuffix); 36 } 37 38 } 39 | Popular Tags |