20 package uk.ac.cam.eng.rule.retrieval;
36 this.sourcePattern = sourcePattern;
37 this.targetPattern = targetPattern;
42 String[] sourceTarget = patternString.split(
"-");
43 if (sourceTarget.length != 2) {
44 System.err.println(
"Malformed pattern: " + patternString);
54 rule.target().toPattern());
73 result = prime * result
74 + ((sourcePattern == null) ? 0 : sourcePattern.hashCode());
75 result = prime * result
76 + ((targetPattern == null) ? 0 : targetPattern.hashCode());
91 if (getClass() != obj.getClass())
94 if (sourcePattern == null) {
95 if (other.sourcePattern != null)
97 }
else if (!sourcePattern.
equals(other.sourcePattern))
99 if (targetPattern == null) {
100 if (other.targetPattern != null)
102 }
else if (!targetPattern.
equals(other.targetPattern))
boolean equals(Object obj)
static RulePattern getPattern(Rule rule)
static RulePattern parsePattern(String patternString)
static SidePattern parsePattern(String patternString)
boolean equals(Object obj)