1 26 27 package org.objectweb.openccm.generator.java.ast.lib; 28 29 import org.objectweb.openccm.generator.java.ast.api.ObjectBase; 30 import java.util.ArrayList ; 31 32 37 38 public class ObjectBaseImpl 39 implements ObjectBase 40 { 41 47 48 private ArrayList comments_; 49 50 51 private String name_; 52 53 54 private ModifierKindImpl modifier_; 55 56 57 private boolean final_; 58 59 65 66 public 67 ObjectBaseImpl() 68 { 69 comments_ = new ArrayList (); 71 name_ = null; 72 modifier_ = ModifierKindImpl.mk_public; 73 final_ = false; 74 } 75 76 82 88 93 public void 94 addComment(String comment) 95 { 96 comments_.add(comment); 97 } 98 99 104 public ArrayList 105 getComments() 106 { 107 return comments_; 108 } 109 110 115 public void 116 setName(String name) 117 { 118 name_ = name; 119 } 120 121 126 public String 127 getName() 128 { 129 return name_; 130 } 131 132 137 public void 138 setModifier(ModifierKindImpl mk) 139 { 140 modifier_ = mk; 141 } 142 143 148 public ModifierKindImpl 149 getModifier() 150 { 151 return modifier_; 152 } 153 154 159 public void 160 setFinal(boolean b) 161 { 162 final_ = b; 163 } 164 165 170 public boolean 171 isFinal() 172 { 173 return final_; 174 } 175 } 176 | Popular Tags |