1 26 27 package org.objectweb.openccm.generator.java.ast.lib; 28 29 36 public final class ModifierKindImpl 37 { 38 44 47 public static final int mk_public_ = 0; 48 49 52 public static final ModifierKindImpl mk_public = new ModifierKindImpl(mk_public_); 53 54 57 public static final int mk_protected_ = 1; 58 59 62 public static final ModifierKindImpl mk_protected = new ModifierKindImpl(mk_protected_); 63 64 67 public static final int mk_private_ = 2; 68 69 72 public static final ModifierKindImpl mk_private = new ModifierKindImpl(mk_private_); 73 74 75 81 84 private final int ModifierKind_value_; 85 86 92 96 private ModifierKindImpl( int value ) 97 { 98 ModifierKind_value_ = value; 99 } 100 101 107 111 public int value() 112 { 113 return ModifierKind_value_; 114 } 115 116 121 public static ModifierKindImpl from_int(int value) 122 { 123 switch (value) 124 { 125 case 0 : 126 return mk_public; 127 case 1 : 128 return mk_protected; 129 case 2 : 130 return mk_private; 131 } 132 return null; 133 } 134 135 139 public java.lang.String toString() 140 { 141 switch (ModifierKind_value_) 142 { 143 case 0 : 144 return "public"; 145 case 1 : 146 return "protected"; 147 case 2 : 148 return "private"; 149 } 150 return ""; 151 } 152 153 } 154 | Popular Tags |