Fixing program structure; now accepting multiple policy files; cross-checking referen...
[iot2.git] / iotjava / iotpolicy / tree / InterfaceDecl.java
index 51da7b723a41d5db9418a69b45c4f993e042a01d..15893e314a9b4f15a9084b89fb3accba608cb1fd 100644 (file)
@@ -14,12 +14,7 @@ import java.util.Set;
  * @version     1.0
  * @since       2016-09-20
  */
-public class InterfaceDecl {
-
-       /**
-        * Class properties
-        */
-       private String origInt;
+public class InterfaceDecl extends Declaration {
 
        /**
         * A "interface" statement:
@@ -34,6 +29,10 @@ public class InterfaceDecl {
         * In this data structure we will record its interface name, i.e. Camera
         *              its method names and the parameters for each method.
         */
+
+       /**
+        * Class properties
+        */
        private List<String> listMethods;                                       // Method signature (no spaces), e.g. MethodA(intA,SpeakerB)
        private List<String> listMethodIds;                                     // Method identifiers, e.g. MethodA
        private List<String> listMethodTypes;                           // Method types, e.g. void
@@ -45,7 +44,7 @@ public class InterfaceDecl {
         */
        public InterfaceDecl() {
 
-               origInt = null;
+               super();
                listMethods = new ArrayList<String>();
                listMethodIds = new ArrayList<String>();
                listMethodTypes = new ArrayList<String>();
@@ -56,7 +55,7 @@ public class InterfaceDecl {
 
        public InterfaceDecl(String _origInt) {
 
-               origInt = _origInt;
+               super(_origInt);
                listMethods = new ArrayList<String>();
                listMethodIds = new ArrayList<String>();
                listMethodTypes = new ArrayList<String>();