package vhdlObjects;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

public abstract class aPackage extends Jsonable {
	public String name;
	public List<Entity> components;

	@Override
	public JSONObject toJson() throws JSONException {
		JSONObject p = new JSONObject();
		p.put("name", name);
		addJsonObj(p, "components", components, c -> c.name);
		return p;
	}

}

@@ -37,16 +37,41 @@
 il.List;
+%0Aimport java.util.Vector;
 %0A%0Aimport
@@ -229,16 +229,78 @@
 nents;%0A%0A
+%09public aPackage() %7B%0A%09%09components = new Vector%3CEntity%3E();%0A%09%7D%0A%0A
 %09@Overri

fix aPackage constructor