1 2 package com.sun.java_cup.internal; 3 4 13 public class nonassoc_action extends parse_action { 14 15 16 17 18 19 21 public nonassoc_action() throws internal_error 22 { 23 24 } 25 26 27 28 29 30 31 public int kind() {return NONASSOC;} 32 33 34 35 36 public boolean equals(parse_action other) 37 { 38 return other != null && other.kind() == NONASSOC; 39 } 40 41 42 43 44 public boolean equals(Object other) 45 { 46 if (other instanceof parse_action) 47 return equals((parse_action)other); 48 else 49 return false; 50 } 51 52 53 54 55 public int hashCode() 56 { 57 58 return 0xCafe321; 59 } 60 61 62 63 64 public String toString() 65 { 66 return "NONASSOC"; 67 } 68 69 70 71 } 72 | Popular Tags |