Adding struct support for Java in compiler
[iot2.git] / config / iotpolicy / camerapolicy.pol
index d85eb53ce25f061402294d7481e73584c6128d8f..ca807b6578a2bcab65854fce15b401d072f92d09 100644 (file)
@@ -7,6 +7,8 @@ public interface Camera {
     public float MethodD(List<String> G, float H);
     public boolean MethodE(String I, boolean J);
        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";
@@ -14,6 +16,9 @@ public interface Camera {
                method = "MethodA(int A, int B)";
                method = "MethodB(int C, String D[])";
                method = "MethodC(String E, List<Integer> F)";
+               method = "MethodF(LightBulb K)";
+               method = "MethodG(Enum L)";
+               method = "MethodH(Struct M, int N)";
        }
 
        capability VideoRecording {
@@ -27,6 +32,13 @@ public interface Camera {
                description = "The quick brown fox jumps over the clever dog";
                method = "MethodE(String I, boolean J)";
        }
+
+       struct Struct {
+
+               string  name;
+               float   value;
+               int     year;
+       } 
 }