1 2 package com.sun.java_cup.internal; 3 4 14 15 public class parse_action { 16 17 18 19 20 21 22 public parse_action() 23 { 24 25 } 26 27 28 29 30 31 32 33 public static final int ERROR = 0; 34 35 36 37 38 public static final int SHIFT = 1; 39 40 41 42 43 public static final int REDUCE = 2; 44 45 46 47 48 public static final int NONASSOC = 3; 49 50 51 52 53 54 55 public int kind() {return ERROR;} 56 57 58 59 60 public boolean equals(parse_action other) 61 { 62 63 return other != null && other.kind() == ERROR; 64 } 65 66 67 68 69 public boolean equals(Object other) 70 { 71 if (other instanceof parse_action) 72 return equals((parse_action)other); 73 else 74 return false; 75 } 76 77 78 79 public int hashCode() 80 { 81 82 return 0xCafe123; 83 } 84 85 86 87 88 public String toString() {return "ERROR";} 89 90 91 } 92 93 | Popular Tags |