1 19 20 package org.netbeans.jmi.javamodel; 21 22 30 public final class OperatorEnum implements Operator { 31 34 public static final OperatorEnum ASSIGN = new OperatorEnum("assign"); 35 38 public static final OperatorEnum GT = new OperatorEnum("gt"); 39 42 public static final OperatorEnum LT = new OperatorEnum("lt"); 43 46 public static final OperatorEnum NOT = new OperatorEnum("not"); 47 50 public static final OperatorEnum EQUAL = new OperatorEnum("equal"); 51 54 public static final OperatorEnum LTE = new OperatorEnum("lte"); 55 58 public static final OperatorEnum GTE = new OperatorEnum("gte"); 59 62 public static final OperatorEnum NEQUAL = new OperatorEnum("nequal"); 63 66 public static final OperatorEnum LAND = new OperatorEnum("land"); 67 70 public static final OperatorEnum LOR = new OperatorEnum("lor"); 71 74 public static final OperatorEnum INC = new OperatorEnum("inc"); 75 78 public static final OperatorEnum DEC = new OperatorEnum("dec"); 79 82 public static final OperatorEnum PLUS = new OperatorEnum("plus"); 83 86 public static final OperatorEnum MINUS = new OperatorEnum("minus"); 87 90 public static final OperatorEnum MULTI = new OperatorEnum("multi"); 91 94 public static final OperatorEnum DIV = new OperatorEnum("div"); 95 98 public static final OperatorEnum AND = new OperatorEnum("and"); 99 102 public static final OperatorEnum OR = new OperatorEnum("or"); 103 106 public static final OperatorEnum XOR = new OperatorEnum("xor"); 107 110 public static final OperatorEnum MOD = new OperatorEnum("mod"); 111 114 public static final OperatorEnum LSHIFT = new OperatorEnum("lshift"); 115 118 public static final OperatorEnum RSHIFT = new OperatorEnum("rshift"); 119 122 public static final OperatorEnum URSHIFT = new OperatorEnum("urshift"); 123 126 public static final OperatorEnum PLUSASSIGN = new OperatorEnum("plusassign"); 127 130 public static final OperatorEnum MINUSASSIGN = new OperatorEnum("minusassign"); 131 134 public static final OperatorEnum MULTIASSIGN = new OperatorEnum("multiassign"); 135 138 public static final OperatorEnum DIVASSIGN = new OperatorEnum("divassign"); 139 142 public static final OperatorEnum ANDASSIGN = new OperatorEnum("andassign"); 143 146 public static final OperatorEnum ORASSIGN = new OperatorEnum("orassign"); 147 150 public static final OperatorEnum XORASSIGN = new OperatorEnum("xorassign"); 151 154 public static final OperatorEnum MODASSIGN = new OperatorEnum("modassign"); 155 158 public static final OperatorEnum LSHIFTASSIGN = new OperatorEnum("lshiftassign"); 159 162 public static final OperatorEnum RSHIFTASSIGN = new OperatorEnum("rshiftassign"); 163 166 public static final OperatorEnum URSHIFTASSIGN = new OperatorEnum("urshiftassign"); 167 170 public static final OperatorEnum COMP = new OperatorEnum("comp"); 171 174 public static final OperatorEnum INSTANCEOF = new OperatorEnum("instanceof"); 175 176 private static final java.util.List typeName; 177 private final java.lang.String literalName; 178 179 static { 180 java.util.ArrayList temp = new java.util.ArrayList (); 181 temp.add("JavaModel"); 182 temp.add("Operator"); 183 typeName = java.util.Collections.unmodifiableList(temp); 184 } 185 186 private OperatorEnum(java.lang.String literalName) { 187 this.literalName = literalName; 188 } 189 190 194 public java.util.List refTypeName() { 195 return typeName; 196 } 197 198 202 public java.lang.String toString() { 203 return literalName; 204 } 205 206 210 public int hashCode() { 211 return literalName.hashCode(); 212 } 213 214 220 public boolean equals(java.lang.Object o) { 221 if (o instanceof OperatorEnum) return (o == this); 222 else if (o instanceof Operator) return (o.toString().equals(literalName)); 223 else return ((o instanceof javax.jmi.reflect.RefEnum) && ((javax.jmi.reflect.RefEnum) o).refTypeName().equals(typeName) && o.toString().equals(literalName)); 224 } 225 226 231 public static Operator forName(java.lang.String name) { 232 if (name.equals("assign")) return ASSIGN; 233 if (name.equals("gt")) return GT; 234 if (name.equals("lt")) return LT; 235 if (name.equals("not")) return NOT; 236 if (name.equals("equal")) return EQUAL; 237 if (name.equals("lte")) return LTE; 238 if (name.equals("gte")) return GTE; 239 if (name.equals("nequal")) return NEQUAL; 240 if (name.equals("land")) return LAND; 241 if (name.equals("lor")) return LOR; 242 if (name.equals("inc")) return INC; 243 if (name.equals("dec")) return DEC; 244 if (name.equals("plus")) return PLUS; 245 if (name.equals("minus")) return MINUS; 246 if (name.equals("multi")) return MULTI; 247 if (name.equals("div")) return DIV; 248 if (name.equals("and")) return AND; 249 if (name.equals("or")) return OR; 250 if (name.equals("xor")) return XOR; 251 if (name.equals("mod")) return MOD; 252 if (name.equals("lshift")) return LSHIFT; 253 if (name.equals("rshift")) return RSHIFT; 254 if (name.equals("urshift")) return URSHIFT; 255 if (name.equals("plusassign")) return PLUSASSIGN; 256 if (name.equals("minusassign")) return MINUSASSIGN; 257 if (name.equals("multiassign")) return MULTIASSIGN; 258 if (name.equals("divassign")) return DIVASSIGN; 259 if (name.equals("andassign")) return ANDASSIGN; 260 if (name.equals("orassign")) return ORASSIGN; 261 if (name.equals("xorassign")) return XORASSIGN; 262 if (name.equals("modassign")) return MODASSIGN; 263 if (name.equals("lshiftassign")) return LSHIFTASSIGN; 264 if (name.equals("rshiftassign")) return RSHIFTASSIGN; 265 if (name.equals("urshiftassign")) return URSHIFTASSIGN; 266 if (name.equals("comp")) return COMP; 267 if (name.equals("instanceof")) return INSTANCEOF; 268 throw new java.lang.IllegalArgumentException ("Unknown literal name '" + name + "' for enumeration 'JavaModel.Operator'"); 269 } 270 274 protected java.lang.Object readResolve() throws java.io.ObjectStreamException { 275 try { 276 return forName(literalName); 277 } catch (java.lang.IllegalArgumentException e) { 278 throw new java.io.InvalidObjectException (e.getMessage()); 279 } 280 } 281 } 282 | Popular Tags |