1 20 21 22 23 package cpmake; 24 25 class PhonyRule implements Rule 26 { 27 private String m_target; 28 private String [] m_prerequisites; 29 private String m_scriptCall; 30 31 public PhonyRule(String target, String [] prerequisites, String scriptCall) 32 { 33 m_target = target; 34 m_prerequisites = prerequisites; 35 m_scriptCall = scriptCall; 36 } 37 38 public boolean matchTarget(String target) 39 { 40 return(target.equals(m_target)); 41 } 42 43 public String [] getPrerequisites(String target) 44 { 45 return (m_prerequisites); 46 } 47 48 public String getScriptCall() 49 { 50 return (m_scriptCall); 51 } 52 53 public boolean hasAction() 54 { 55 return (m_scriptCall != null); 56 } 57 58 public boolean verify() 59 { 60 return (false); 61 } 62 63 public String getTarget() 64 { 65 return (m_target); 66 } 67 68 public void callAction(String target) {} 69 } 70 | Popular Tags |