1 package antlr.debug; 2 3 public class SemanticPredicateEvent extends GuessingEvent { 4 public static final int VALIDATING=0; 5 public static final int PREDICTING=1; 6 private int condition; 7 private boolean result; 8 9 10 public SemanticPredicateEvent(Object source) { 11 super(source); 12 } 13 public SemanticPredicateEvent(Object source, int type) { 14 super(source, type); 15 } 16 public int getCondition() { 17 return condition; 18 } 19 public boolean getResult() { 20 return result; 21 } 22 void setCondition(int condition) { 23 this.condition = condition; 24 } 25 void setResult(boolean result) { 26 this.result = result; 27 } 28 29 void setValues(int type, int condition, boolean result, int guessing) { 30 super.setValues(type, guessing); 31 setCondition(condition); 32 setResult(result); 33 } 34 public String toString() { 35 return "SemanticPredicateEvent [" + 36 getCondition() + "," + getResult() + "," + getGuessing() + "]"; 37 } 38 } | Popular Tags |