Lines Matching defs:Result
32 public interface Result {
33 public static final Result ICCE = new Exception(IncompatibleClassChangeError.class);
34 public static final Result IAE = new Exception(IllegalAccessError.class);
35 public static final Result NSME = new Exception(NoSuchMethodError.class);
36 public static final Result AME = new Exception(AbstractMethodError.class);
43 public static Result is(int id) {
50 public static Result is(int... multiple) {
63 public static Result is(Class<? extends Throwable> exType) {
70 public static Result is(Throwable ex) {
71 return Result.is(ex.getClass());
74 public static final Result EMPTY = new Empty();
77 * Create an empty Result.
79 public static Result empty() {
86 public boolean complyWith(Result r);
88 static class Empty implements Result {
100 public boolean complyWith(Result r) {
105 static class Single implements Result {
123 public boolean complyWith(Result r) {
149 final StringBuffer sb = new StringBuffer("Result=Single{");
156 static class Any implements Result {
174 public boolean complyWith(Result r) {
201 final StringBuffer sb = new StringBuffer("Result=Any{");
215 static class Exception implements Result {
232 public boolean complyWith(Result r) {
256 final StringBuffer sb = new StringBuffer("Result=Exception{");