1 5 package polyglot.pth; 6 7 import java.util.regex.Matcher ; 8 import java.util.regex.Pattern ; 9 10 import polyglot.util.ErrorInfo; 11 12 15 public class AnyExpectedFailure extends ExpectedFailure { 16 public AnyExpectedFailure() { 17 super(-1); 18 } 19 public boolean matches(ErrorInfo e) { 20 return true; 21 } 22 23 public boolean equals(Object o) { 24 if (o instanceof AnyExpectedFailure) { 25 return true; 26 } 27 return false; 28 } 29 public int hashCode() { 30 return (74298); 31 } 32 public String toString() { 33 return "(any remaining failures)"; 34 } 35 } 36 | Popular Tags |