1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.TypeRef; 31 32 48 49 abstract public 50 class DeclarationWithTypeRefImpl 51 extends DeclarationImpl 52 implements org.objectweb.openccm.ast.api.DeclarationWithTypeRef 53 { 54 60 61 protected TypeRef type_; 62 63 69 75 protected 76 DeclarationWithTypeRefImpl(Repository rep, 77 ScopeImpl parent) 78 { 79 super(rep, parent); 81 82 type_ = null; 84 } 85 86 92 97 protected org.omg.CORBA.IDLType 98 getIDLType() 99 { 100 if(type_ == null) 101 return null; 102 103 return ((IDLTypeWrapper)type_).getIDLType(); 104 } 105 106 112 118 123 public void 124 setType(TypeRef type) 125 { 126 type_ = type; 127 } 128 129 134 public TypeRef 135 getType() 136 { 137 return type_; 138 } 139 } 140 | Popular Tags |