KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CDL > CompTypedef


1 /* $Id: CompTypedef.java,v 1.2 2004/05/20 14:23:51 bures Exp $ */
2 package SOFA.SOFAnode.Made.CDL;
3 import SOFA.SOFAnode.Made.TIR.CDLRepository;
4 import SOFA.SOFAnode.Made.TIR.CDLType;
5
6 class CompTypedef extends CompContainedContainerIm implements CompType {
7   public CompType type;
8   
9   public CompTypedef(ID id, CompContainer in, CompRepository inRep, CompType type) {
10     super(ObjectsKind.o_Typedef, id, in, inRep);
11     this.type = type;
12   }
13
14   public void checkConsist(EnumList props, CompRepository rep) throws CDLExceptCheck, CDLExceptLock, CDLExceptRemote {
15     type.checkConsist(props,rep);
16   }
17
18   /** from CompType */
19   public CDLType toNormal(CDLRepository newRep) throws CDLExceptToNormal {
20     // never call this
21
throw new CDLExceptToNormal("It should never throw");
22   }
23 }
24
Popular Tags