KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: PrimitiveDefImpl.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 import java.rmi.server.UnicastRemoteObject JavaDoc;
5
6 import SOFA.SOFAnode.Made.TIR.DefinitionKind;
7 import SOFA.SOFAnode.Made.TIR.PrimitiveDef;
8 import SOFA.SOFAnode.Made.TIR.PrimitiveKind;
9 import SOFA.SOFAnode.Made.TIR.StateKind;
10
11 public class PrimitiveDefImpl extends UnicastRemoteObject JavaDoc implements PrimitiveDef {
12   DefinitionKindImpl defKindImpl;
13   PrimitiveKindImpl primKindImpl;
14   StateKindImpl stKindImpl;
15
16   public PrimitiveDefImpl(int p_kind, int state) throws RemoteException JavaDoc {
17     defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_Primitive);
18     primKindImpl = new PrimitiveKindImpl(p_kind);
19     stKindImpl = new StateKindImpl(state);
20   }
21   
22   /* from interface TIRObject */
23   public DefinitionKind get_def_kind() throws RemoteException JavaDoc {
24     return (DefinitionKind) defKindImpl;
25   }
26
27   /* from interface PrimitiveDef */
28   public PrimitiveKind kind() throws RemoteException JavaDoc {
29     return (PrimitiveKind) primKindImpl;
30   }
31
32   /* from interface TIRObject */
33   public StateKind get_state() throws RemoteException JavaDoc {
34     return (StateKind) stKindImpl;
35   }
36 }
37
Popular Tags