1 26 27 package org.objectweb.openccm.generator.java.ast.lib; 28 29 import org.objectweb.openccm.generator.java.ast.api.AbstractObject; 30 import org.objectweb.openccm.generator.java.ast.api.InterfaceObject; 31 import org.objectweb.openccm.generator.java.ast.api.MethodObject; 32 import java.util.ArrayList ; 33 34 39 40 public class InterfaceObjectImpl 41 extends ObjectWithPackageImpl 42 implements InterfaceObject 43 { 44 50 51 private AbstractObject abstract_delegate_; 52 53 54 private ArrayList methods_; 55 56 57 private ArrayList imports_; 58 59 60 private ArrayList inherited_objects_; 61 62 68 69 public 70 InterfaceObjectImpl() 71 { 72 super(); 74 abstract_delegate_ = new AbstractObjectImpl(); 75 methods_ = new ArrayList (); 76 imports_ = new ArrayList (); 77 inherited_objects_ = new ArrayList (); 78 } 79 80 85 public 86 InterfaceObjectImpl(String name) 87 { 88 super(); 90 abstract_delegate_ = new AbstractObjectImpl(); 91 methods_ = new ArrayList (); 92 imports_ = new ArrayList (); 93 inherited_objects_ = new ArrayList (); 94 95 setName(name); 96 } 97 103 109 115 120 public void 121 setAbstract(boolean b) 122 { 123 abstract_delegate_.setAbstract(b); 124 } 125 126 131 public boolean 132 isAbstract() 133 { 134 return abstract_delegate_.isAbstract(); 135 } 136 137 143 148 public void 149 addImport(String object) 150 { 151 imports_.add(object); 152 } 153 154 159 public ArrayList 160 getImports() 161 { 162 return imports_; 163 } 164 165 170 public void 171 addInheritedObject(String object) 172 { 173 inherited_objects_.add(object); 174 } 175 176 181 public ArrayList 182 getInheritedObjects() 183 { 184 return inherited_objects_; 185 } 186 187 192 public void 193 addMethod(MethodObject method) 194 { 195 methods_.add(method); 196 } 197 198 203 public ArrayList 204 getMethods() 205 { 206 return methods_; 207 } 208 } 209 | Popular Tags |