KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > TIR > Impl > NotYetInRep


1 /* $Id: NotYetInRep.java,v 1.2 2004/05/20 14:23:52 bures Exp $ */
2 package SOFA.SOFAnode.Made.TIR.Impl;
3 import java.rmi.RemoteException JavaDoc;
4
5 import SOFA.SOFAnode.Made.TIR.CDLType;
6 import SOFA.SOFAnode.Made.TIR.DefinitionKind;
7 import SOFA.SOFAnode.Made.TIR.StateKind;
8
9 public class NotYetInRep implements CDLType {
10   DefinitionKindImpl defKindImpl; /* this */
11   
12   public int defKind; /* dk_Typedef or dk_Primitive */
13   public IdentificationImpl id;
14   public AbsoluteNameImpl nm;
15   public int primKind;
16
17   public NotYetInRep(String JavaDoc absname, String JavaDoc name, String JavaDoc version) throws RemoteException JavaDoc {
18     defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_none);
19     defKind = DefinitionKind.dk_Typedef;
20     nm = new AbsoluteNameImpl(absname);
21     StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
22     for(int i=1;i<nm.size();i++) {
23       sb.append("::"+nm.elementAt(i));
24     }
25     id = new IdentificationImpl(nm.elementAt(0), sb.toString(), version);
26     primKind = -1;
27   }
28
29   public NotYetInRep(int primitiveKind) throws RemoteException JavaDoc {
30     defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_none);
31     defKind = DefinitionKind.dk_Primitive;
32     primKind = primitiveKind;
33     id = null;
34     nm = null;
35   }
36
37   /* from interface TIRObject */
38   public DefinitionKind get_def_kind() throws RemoteException JavaDoc {
39     return (DefinitionKind) defKindImpl;
40   }
41
42   /* from interface TIRObject */
43   public StateKind get_state() throws RemoteException JavaDoc {
44     return null;
45   }
46 }
47
Popular Tags