diff --git a/AlgebraicDataflowArchitectureModel/src/algorithms/JerseyCodeGenerator.java b/AlgebraicDataflowArchitectureModel/src/algorithms/JerseyCodeGenerator.java index 8c7a428..034b89f 100644 --- a/AlgebraicDataflowArchitectureModel/src/algorithms/JerseyCodeGenerator.java +++ b/AlgebraicDataflowArchitectureModel/src/algorithms/JerseyCodeGenerator.java @@ -236,6 +236,12 @@ getter.getBody().addStatement("return " + field.getName() + ";"); type.addMethod(getter); } + +// MethodDeclaration toStr = new MethodDeclaration("toString", false, DataConstraintModel.typeString, null); +// block = new Block(); +// block.addStatement("return \"{\\\"\" + left + \"\\\":\\\"\" + right + \"\\\"}\";"); +// toStr.setBody(block); +// type.addMethod(toStr); CompilationUnit cu = new CompilationUnit(type); cu.addImport(new ImportDeclaration("java.util.*"));