1 20 21 package cpmake; 22 23 import java.util.regex.*; 24 25 class SearchPath 26 { 27 private Pattern m_pattern; 28 private String m_path; 29 30 public SearchPath(String pattern, String path) 31 { 32 m_pattern = Pattern.compile(pattern); 33 m_path = path; 34 } 35 36 public boolean matches(String file) 37 { 38 return (m_pattern.matcher(file).matches()); 39 } 40 41 public String getPath() 42 { 43 return (m_path); 44 } 45 } 46 | Popular Tags |