if (getDeclarationSequence() != null) {\r
Element declarations = document.createElement("declarations");\r
root.appendChild(declarations);\r
+ Element parameters = document.createElement("parameters");\r
+ Element variables = document.createElement("variables");\r
+ declarations.appendChild(parameters);\r
+ declarations.appendChild(variables);\r
+\r
for (int i = 0; i < getDeclarationSequence().getDeclarations().size(); i++) {\r
Element declarationElement = null;\r
if (getDeclarationSequence().getDeclarations().get(i).getClass().getSimpleName()\r
.equals("ParameterDeclaration")) {\r
declarationElement = document.createElement("parameter");\r
+ declarationElement.setAttribute("name",\r
+ getDeclarationSequence().getDeclarations().get(i).getName());\r
+ declarationElement.setAttribute("type",\r
+ getDeclarationSequence().getDeclarations().get(i).getType());\r
+ parameters.appendChild(declarationElement);\r
} else {\r
declarationElement = document.createElement("variable");\r
+ declarationElement.setAttribute("name",\r
+ getDeclarationSequence().getDeclarations().get(i).getName());\r
+ declarationElement.setAttribute("type",\r
+ getDeclarationSequence().getDeclarations().get(i).getType());\r
+ variables.appendChild(declarationElement);\r
}\r
- declarationElement.setAttribute("name",\r
- getDeclarationSequence().getDeclarations().get(i).getName());\r
- declarationElement.setAttribute("type",\r
- getDeclarationSequence().getDeclarations().get(i).getType());\r
- declarations.appendChild(declarationElement);\r
}\r
}\r
if (getCommandSequence() != null) {\r