Fixed compiler for Java code generation (not heavily tested yet, but fixes include...
[iot2.git] / localconfig / iotpolicy / development / testclasspolicy_callbacks.pol
1 public interface TestClassInterface {
2
3         public short getShort(short in);
4         public void registerCallback(CallBackInterface _cb);
5         public int callBack();
6         public List<Character> getCharList(List<Character> in);
7         public Enum[] handleEnumStruct(Enum en[], List<Struct> str, char c);
8         public List<Struct> handleStructList(List<Struct> str);
9         public void registerCallbackArray(CallBackInterface _cb[]);
10         public void registerCallbackList(List<CallBackInterface> _cb);
11
12         capability Callbacks {
13                 description = "All the set-and-get methods";
14                 method = "getShort(short in)";
15                 method = "registerCallback(CallBackInterface _cb)";
16                 method = "callBack()";
17                 method = "getCharList(List<Character> in)";
18                 method = "handleEnumStruct(Enum en[], List<Struct> str, char c)";
19                 method = "handleStructList(List<Struct> str)";
20                 method = "registerCallbackArray(CallBackInterface _cb[])";
21                 method = "registerCallbackList(List<CallBackInterface> _cb)";
22         }
23         
24         enum Enum {
25
26                 APPLE,
27                 ORANGE,
28                 GRAPE
29         }
30
31         struct Struct {
32
33                 string  name;
34                 float   value;
35                 int     year;
36         }
37 }
38
39