1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.DeclarationKind; 31 32 47 48 public class AbstractStorageTypeDeclImpl 49 extends StorageTypeBaseImpl 50 implements org.objectweb.openccm.ast.api.AbstractStorageTypeDecl 51 { 52 58 59 protected org.objectweb.openccm.ast.api.NativeDecl mapping_; 60 61 67 72 protected 73 AbstractStorageTypeDeclImpl(Repository rep, 74 ScopeImpl parent) 75 { 76 super(rep, parent); 78 79 mapping_ = null; 81 } 82 83 89 95 102 public long 103 getDeclKind() 104 { 105 return DeclarationKind.dk_abstract_storage_type; 106 } 107 108 114 120 126 132 138 144 150 156 162 168 174 179 public org.objectweb.openccm.ast.api.NativeDecl 180 getMapping() 181 { 182 if (mapping_ == null) 183 { 184 ScopeImpl module = (ScopeImpl)getParent(); 185 186 mapping_ = module.startNative(getName()); 187 ((NativeDeclImpl)mapping_).setIDLType( module.getContainer(). 189 create_native(mapping_.getId(), mapping_.getName(), mapping_.getVersion()) ); 190 } 191 return mapping_; 192 } 193 } 194 | Popular Tags |