Commit 8d06b37a authored by Leonard Faecke's avatar Leonard Faecke
Browse files

+ Added analysis of module parameters

parent c36f2b47
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
@@ -507,13 +507,26 @@ public class UsageAnalyzer implements Callable<TTCN3Usage> {
	}
	
	/**
	 * Analyzes a module par definition. Currently just a skeleton
	 * Analyzes a module parameter definition. 
	 * @param mod The module par definition to be analyzed
	 * @param output The TTCN3Usage to write the output to
	 */
	private void analyzeModuleParDef(ModuleParDef mod, TTCN3Usage output) {
		addToOutput(output, "ModulePar");
		//TODO everything
		String id = "ModuleParam:";
		int n = 1;
		if(mod.getMultitypeParam() != null) {
			id += "MultipleSize";
			id += mod.getMultitypeParam().getParams().size();
			//TODO types in multiple parameter
		} else if(mod.getParam().getType() != null) {
			if(mod.getParam().getType().getPre() != null) {
				id += mod.getParam().getType().getPre();
			} else {
				id += "Non-Primitive";
			}
			n = mod.getParam().getList().getParams().size();
		}
		addNToOutput(output, id, n);
	}
	
	@Override