Adding struct support for Java in compiler
[iot2.git] / config / iotpolicy / camerapolicy.pol
index ac9955864eb38160e929febbe8d19c6ffde293f8..ca807b6578a2bcab65854fce15b401d072f92d09 100644 (file)
@@ -1,32 +1,44 @@
 public interface Camera {
 
-    public void MethodA(int A, int B);
+    public List<Float> MethodA(int A, int B);
     public void MethodA(int A, int B, int AB);
     public int MethodB(int C, String D[]);
-    public String MethodC(String E, Map<String,Integer> F);
-    public float MethodD(Set<String> G, float H);
+    public String MethodC(String E, List<Integer> F);
+    public float MethodD(List<String> G, float H);
     public boolean MethodE(String I, boolean J);
-       public void MethodF(int K);
+       public void MethodF(LightBulb K);
+       public Enum MethodG(Enum L);
+       public Struct MethodH(Struct M, int N);
 
        capability ImageCapture {
                description = "The quick brown fox jumps over the smart dog";
                description = "Another description";
                method = "MethodA(int A, int B)";
                method = "MethodB(int C, String D[])";
-               method = "MethodC(String E, Map<String,Integer> F)";
+               method = "MethodC(String E, List<Integer> F)";
+               method = "MethodF(LightBulb K)";
+               method = "MethodG(Enum L)";
+               method = "MethodH(Struct M, int N)";
        }
 
        capability VideoRecording {
                description = "The quick brown fox jumps over the cool dog";
                method = "MethodA(int A, int B)";
                method = "MethodA(int A, int B, int AB)";
-               method = "MethodD(Set<String> G, float H)";
+               method = "MethodD(List<String> G, float H)";
        }
 
        capability BackupData {
                description = "The quick brown fox jumps over the clever dog";
                method = "MethodE(String I, boolean J)";
        }
+
+       struct Struct {
+
+               string  name;
+               float   value;
+               int     year;
+       } 
 }