1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.TypeRef; 31 32 45 46 public class WithNameTypeRefImpl 47 extends WithNameImpl 48 implements org.objectweb.openccm.ast.api.WithNameTypeRef 49 { 50 56 57 protected TypeRef type_; 58 59 65 71 public 72 WithNameTypeRefImpl(String name, 73 TypeRef type) 74 { 75 super(name); 77 78 type_ = type; 80 } 81 82 88 94 99 public org.omg.CORBA.IDLType 100 getIDLType() 101 { 102 return ((IDLTypeWrapper)type_).getIDLType(); 103 } 104 105 110 public org.omg.CORBA.StructMember 111 getStructMember() 112 { 113 return new org.omg.CORBA.StructMember ( 114 getName(), 115 org.objectweb.openccm.corba.TypeCodeUtils.getTC_void(), 116 getIDLType()); 117 } 118 119 125 130 public void 131 setType(TypeRef type) 132 { 133 type_ = type; 134 } 135 136 141 public TypeRef 142 getType() 143 { 144 return type_; 145 } 146 } 147 | Popular Tags |