From b7e05c85e3d6599ff72ef3946db6f1d278cf0f1e Mon Sep 17 00:00:00 2001 From: Ivan Kniazkov Date: Wed, 27 Nov 2024 12:34:50 +0300 Subject: [PATCH] Testing on syntax tree obtained from real code using JavaParser --- .../core/algorithms/DiffTreeBuilder.java | 12 +- .../cqfn/astranaut/core/base/DiffNode.java | 4 +- .../algorithms/mapping/TopDownMapperTest.java | 53 + .../heavy/real_tree_from_java_parser_1.json | 15960 +++++++++++++++ .../heavy/real_tree_from_java_parser_2.json | 16874 ++++++++++++++++ 5 files changed, 32900 insertions(+), 3 deletions(-) create mode 100644 src/test/resources/heavy/real_tree_from_java_parser_1.json create mode 100644 src/test/resources/heavy/real_tree_from_java_parser_2.json diff --git a/src/main/java/org/cqfn/astranaut/core/algorithms/DiffTreeBuilder.java b/src/main/java/org/cqfn/astranaut/core/algorithms/DiffTreeBuilder.java index d62eb46e..8fc7b766 100644 --- a/src/main/java/org/cqfn/astranaut/core/algorithms/DiffTreeBuilder.java +++ b/src/main/java/org/cqfn/astranaut/core/algorithms/DiffTreeBuilder.java @@ -76,7 +76,7 @@ public DiffTreeBuilder(final Tree before) { /** * Builds a difference tree based on the original tree and the tree after changes. - * @param after Root node of tree before the changes + * @param after Root node of tree after the changes * @param mapper A mapper used for node mappings * @return Result of operation, {@code true} if difference tree was built */ @@ -95,6 +95,16 @@ public boolean build(final Node after, final Mapper mapper) { return result; } + /** + * Builds a difference tree based on the original tree and the tree after changes. + * @param after Syntax tree after the changes + * @param mapper A mapper used for node mappings + * @return Result of operation, {@code true} if difference tree was built + */ + public boolean build(final Tree after, final Mapper mapper) { + return this.build(after.getRoot(), mapper); + } + /** * Adds an action to the difference tree that inserts a node after another node. * If no other node is specified, inserts at the beginning of the children's list. diff --git a/src/main/java/org/cqfn/astranaut/core/base/DiffNode.java b/src/main/java/org/cqfn/astranaut/core/base/DiffNode.java index 0e318bd4..f8a12f04 100644 --- a/src/main/java/org/cqfn/astranaut/core/base/DiffNode.java +++ b/src/main/java/org/cqfn/astranaut/core/base/DiffNode.java @@ -148,8 +148,8 @@ public boolean insertNodeAfter(final Node node, final Node after) { final ListIterator iterator = this.children.listIterator(); while (iterator.hasNext()) { final Node child = iterator.next(); - if (child instanceof DiffNode - && ((DiffNode) child).getPrototype() == after) { + if (child instanceof DiffNode && ((DiffNode) child).getPrototype() == after + || child instanceof Insert && ((Insert) child).getAfter() == after) { iterator.add(new Insert(node)); result = true; break; diff --git a/src/test/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownMapperTest.java b/src/test/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownMapperTest.java index 7e909439..a6bbc674 100644 --- a/src/test/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownMapperTest.java +++ b/src/test/java/org/cqfn/astranaut/core/algorithms/mapping/TopDownMapperTest.java @@ -29,9 +29,15 @@ import java.util.Map; import java.util.Set; import java.util.TreeMap; +import org.cqfn.astranaut.core.algorithms.DiffTreeBuilder; +import org.cqfn.astranaut.core.base.DefaultFactory; +import org.cqfn.astranaut.core.base.DiffTree; import org.cqfn.astranaut.core.base.DraftNode; import org.cqfn.astranaut.core.base.Insertion; import org.cqfn.astranaut.core.base.Node; +import org.cqfn.astranaut.core.base.Tree; +import org.cqfn.astranaut.core.utils.FilesReader; +import org.cqfn.astranaut.core.utils.JsonDeserializer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -41,6 +47,11 @@ */ @SuppressWarnings("PMD.TooManyMethods") class TopDownMapperTest { + /** + * The folder with test resources. + */ + private static final String TESTS_PATH = "src/test/resources/heavy/"; + @Test void testIdenticalTrees() { final String description = "A(B(C, D))"; @@ -426,4 +437,46 @@ void thirdTestComplexChanges() { final Map replaced = mapping.getReplaced(); Assertions.assertEquals(1, replaced.size()); } + + @Test + void firstTestOnRealSyntaxTree() { + final Tree first = this.readSyntaxTreeFormFile("real_tree_from_java_parser_1.json"); + final Tree second = this.readSyntaxTreeFormFile("real_tree_from_java_parser_2.json"); + final Mapper mapper = TopDownMapper.INSTANCE; + final DiffTreeBuilder builder = new DiffTreeBuilder(first); + final boolean building = builder.build(second, mapper); + Assertions.assertTrue(building); + final DiffTree diff = builder.getDiffTree(); + final Tree before = diff.getBefore(); + Assertions.assertTrue(before.deepCompare(first)); + final Tree after = diff.getAfter(); + Assertions.assertTrue(after.deepCompare(second)); + } + + /** + * Returns content of the specified file. + * @param name The name of the file + * @return The file content + */ + private String getFileContent(final String name) { + final String file = TopDownMapperTest.TESTS_PATH.concat(name); + final String source = new FilesReader(file).readAsStringNoExcept(); + Assertions.assertFalse(source.isEmpty()); + return source; + } + + /** + * Reads syntax tree from a JSON file. + * @param name The name of the file + * @return Syntax tree + */ + private Tree readSyntaxTreeFormFile(final String name) { + final JsonDeserializer deserializer = new JsonDeserializer( + this.getFileContent(name), + language -> DefaultFactory.EMPTY + ); + final Tree tree = deserializer.convert(); + Assertions.assertEquals("CompilationUnit", tree.getRoot().getTypeName()); + return tree; + } } diff --git a/src/test/resources/heavy/real_tree_from_java_parser_1.json b/src/test/resources/heavy/real_tree_from_java_parser_1.json new file mode 100644 index 00000000..df26fda4 --- /dev/null +++ b/src/test/resources/heavy/real_tree_from_java_parser_1.json @@ -0,0 +1,15960 @@ +{ + "root": { + "type": "CompilationUnit", + "children": [ + { + "type": "Comment", + "children": [ + { + "type": "BlockComment", + "data": "\r\n * Copyright (c) 2023 Ivan Kniazkov\r\n " + } + ] + }, + { + "type": "Imports", + "children": [ + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Field", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "reflect", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "lang", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "InvocationTargetException", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "reflect", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "lang", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "util", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "PackageDeclaration", + "children": [ + { + "type": "PackageDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "json", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "kniazkov", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "com" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Types", + "children": [ + { + "type": "ClassOrInterfaceDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * JSON object.\r\n " + } + ] + }, + { + "type": "ExtendedTypes", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + { + "type": "ImplementedTypes", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * JSON object.\r\n " + } + ] + }, + { + "type": "Members", + "children": [ + { + "type": "FieldDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Collection of elements.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Collection of elements.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "private" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "FieldDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Keys (in ordered list).\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Keys (in ordered list).\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "private" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ConstructorDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExplicitConstructorInvocationStmt", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + {"type": "TypeParameters"} + ] + }, + { + "type": "ConstructorDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExplicitConstructorInvocationStmt", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "parent" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "TreeMap" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor (for internal use).\r\n * @param parent The parent of this element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor (for internal use).\r\n * @param parent The parent of this element\r\n " + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "parent" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isEmpty" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isEmpty" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsValue" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "add" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clone" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "NOT_EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "map" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Entry" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + } + ] + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "putAll" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "map" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keySet" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Set" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "values" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "values" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Collection" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Set" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Entry" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "anotherParent" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addElement" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clone" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "anotherParent" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "{" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": ", " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "\\\": " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "escapeEntities" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "\"" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lineSeparator" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "System" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "LESS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "2" + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "{" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "," + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "BinaryExpr", + "data": "PLUS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "1" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addRepeatingString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "\\\": " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "escapeEntities" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "\"" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "BinaryExpr", + "data": "PLUS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "1" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toText" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addRepeatingString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "protected" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toText" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "TreeMap" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "unmodifiableMap" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Collections" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "AND", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isPrimitive" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isInterface" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "NullLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "TryStmt", + "children": [ + { + "type": "CatchClauses", + "children": [ + { + "type": "CatchClause", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Parameter", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ignored" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "UnionType", + "children": [ + {"type": "Annotations"}, + { + "type": "Elements", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "InstantiationException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "IllegalAccessException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "NoSuchMethodException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "InvocationTargetException" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + } + ] + } + ] + }, + {"type": "Resources"}, + { + "type": "TryBlock", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "newInstance" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDeclaredConstructor" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDeclaredFields" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fields" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ArrayType", + "children": [ + {"type": "Annotations"}, + { + "type": "ComponentType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getName" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Class" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "TryStmt", + "children": [ + { + "type": "CatchClauses", + "children": [ + { + "type": "CatchClause", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Parameter", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ignored" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "IllegalAccessException" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + } + ] + } + ] + }, + {"type": "Resources"}, + { + "type": "TryBlock", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setAccessible" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Byte" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Short" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Integer" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "long", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Long" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Float" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "double", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Double" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Boolean" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "OR", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "LinkedList" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "LinkedList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getGenericType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createListFromJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getGenericType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createListFromJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getStringValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getBooleanValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Boolean" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getBooleanValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setBoolean" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Double" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setDouble" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Float" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setFloat" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getLongValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Long" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getLongValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setLong" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Integer" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setInt" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Short" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setShort" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Byte" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setByte" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fields" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Class" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + }, + { + "type": "TypeParameters", + "children": [ + { + "type": "TypeParameter", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + }, + {"type": "TypeBound"} + ] + } + ] + } + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Returns a child element by its key.\r\n * @param key Key\r\n * @return Child element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Returns a child element by its key.\r\n * @param key Key\r\n * @return Child element\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getElement" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Makes a copy of a JSON element and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Makes a copy of a JSON element and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addElement" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonNull" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'null' type and adds a key-value pair to the object.\r\n * @param key Key\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'null' type and adds a key-value pair to the object.\r\n * @param key Key\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addNull" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonBoolean" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'boolean' type and adds a key-value pair to the object.\r\n * @param key Key\r\n @param value Boolean value\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'boolean' type and adds a key-value pair to the object.\r\n * @param key Key\r\n @param value Boolean value\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addBoolean" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonNumber" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'number' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the number\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'number' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the number\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addNumber" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "double", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonString" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'string' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the string\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'string' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the string\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addString" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty array as a child of this object.\r\n * @param key Key\r\n * @return The empty array created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty array as a child of this object.\r\n * @param key Key\r\n * @return The empty array created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createArray" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty object as a child of this object.\r\n * @param key Key\r\n * @return The empty object created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty object as a child of this object.\r\n * @param key Key\r\n * @return The empty object created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "add" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Adds a child element (for internal use).\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Adds a child element (for internal use).\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "ThisExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + {"type": "TypeParameters"} + ] + } + ] + } + ] + } +} diff --git a/src/test/resources/heavy/real_tree_from_java_parser_2.json b/src/test/resources/heavy/real_tree_from_java_parser_2.json new file mode 100644 index 00000000..c306fc65 --- /dev/null +++ b/src/test/resources/heavy/real_tree_from_java_parser_2.json @@ -0,0 +1,16874 @@ +{ + "root": { + "type": "CompilationUnit", + "children": [ + { + "type": "Comment", + "children": [ + { + "type": "BlockComment", + "data": "\r\n * Copyright (c) 2023 Ivan Kniazkov\r\n " + } + ] + }, + { + "type": "Imports", + "children": [ + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Field", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "reflect", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "lang", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "InvocationTargetException", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "reflect", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "lang", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ImportDeclaration", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "util", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "PackageDeclaration", + "children": [ + { + "type": "PackageDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "json", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "kniazkov", + "children": [ + { + "type": "Qualifier", + "children": [ + { + "type": "Name", + "data": "com" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Types", + "children": [ + { + "type": "ClassOrInterfaceDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * JSON object.\r\n " + } + ] + }, + { + "type": "ExtendedTypes", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + { + "type": "ImplementedTypes", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * JSON object.\r\n " + } + ] + }, + { + "type": "Members", + "children": [ + { + "type": "FieldDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Collection of elements.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Collection of elements.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "private" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "FieldDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Keys (in ordered list).\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Keys (in ordered list).\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "private" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ConstructorDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExplicitConstructorInvocationStmt", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + {"type": "TypeParameters"} + ] + }, + { + "type": "ConstructorDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExplicitConstructorInvocationStmt", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "parent" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "TreeMap" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor (for internal use).\r\n * @param parent The parent of this element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Constructor (for internal use).\r\n * @param parent The parent of this element\r\n " + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "parent" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isEmpty" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isEmpty" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsValue" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "add" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clone" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "NOT_EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "remove" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "map" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "pair" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Entry" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + } + ] + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "putAll" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "map" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"}, + { + "type": "ExtendedType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clear" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keySet" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Set" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "values" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "values" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Collection" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "entrySet" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Set" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Entry" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "anotherParent" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addElement" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "copy" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "clone" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "anotherParent" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonContainer" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "{" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": ", " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "\\\": " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "escapeEntities" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "\"" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lineSeparator" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "System" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "converted" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "0" + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "size" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "1" + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "0" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "AND", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "\\\": " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "escapeEntities" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "{\\\"" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "converted" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "{}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "converted" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "converted" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "{" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "," + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "flag" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "BinaryExpr", + "data": "PLUS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "1" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addRepeatingString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "StringLiteralExpr", + "data": "\\\": " + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "escapeEntities" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "\"" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "BinaryExpr", + "data": "PLUS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "IntegerLiteralExpr", + "data": "1" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toText" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "separator" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addRepeatingString" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Utils" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "CharLiteralExpr", + "data": "}" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "append" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "protected" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toText" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "builder" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "StringBuilder" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "indentation" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "level" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "TreeMap" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "unmodifiableMap" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Collections" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Map" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "AND", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isPrimitive" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isInterface" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + {"type": "NullLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "TryStmt", + "children": [ + { + "type": "CatchClauses", + "children": [ + { + "type": "CatchClause", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Parameter", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ignored" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "UnionType", + "children": [ + {"type": "Annotations"}, + { + "type": "Elements", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "InstantiationException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "IllegalAccessException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "NoSuchMethodException" + } + ] + } + ] + }, + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "InvocationTargetException" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + } + ] + } + ] + }, + {"type": "Resources"}, + { + "type": "TryBlock", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "AssignExpr", + "children": [ + { + "type": "Target", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + }, + { + "type": "Value", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "newInstance" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDeclaredConstructor" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDeclaredFields" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fields" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ArrayType", + "children": [ + {"type": "Annotations"}, + { + "type": "ComponentType", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ForEachStmt", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getName" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Class" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "WildcardType", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldName" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "TryStmt", + "children": [ + { + "type": "CatchClauses", + "children": [ + { + "type": "CatchClause", + "children": [ + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Parameter", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ignored" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "IllegalAccessException" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + } + ] + } + ] + }, + {"type": "Resources"}, + { + "type": "TryBlock", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "BooleanLiteralExpr"} + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setAccessible" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Byte" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Short" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "int", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Integer" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "long", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Long" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Float" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "double", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Double" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Boolean" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "lang" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "OR", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "BinaryExpr", + "data": "EQUALS", + "children": [ + { + "type": "Left", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Right", + "children": [ + { + "type": "ClassExpr", + "children": [ + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "LinkedList" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "util" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "java" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fieldType" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "LinkedList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getGenericType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createListFromJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "ArrayList" + } + ] + }, + {"type": "TypeArguments"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "List" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Object" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getGenericType" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createListFromJsonArray" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "list" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getStringValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getBooleanValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Boolean" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getBooleanValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setBoolean" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Double" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setDouble" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Float" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getDoubleValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "float", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setFloat" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getLongValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Long" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getLongValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setLong" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Integer" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setInt" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Short" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "short", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setShort" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ConditionalExpr", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "isNull" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ElseExpr", + "children": [ + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenExpr", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Byte" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "obj" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "set" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + }, + { + "type": "CastExpr", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + {"type": "Arguments"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getIntValue" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "byte", + "children": [ + {"type": "Annotations"} + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "setByte" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Iterable", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "fields" + } + ] + } + ] + } + ] + }, + { + "type": "Variable", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "field" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Field" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "result" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "NullLiteralExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJavaObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "type" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "Class" + } + ] + }, + { + "type": "TypeArguments", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + } + ] + } + ] + }, + { + "type": "TypeParameters", + "children": [ + { + "type": "TypeParameter", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "T" + } + ] + }, + {"type": "TypeBound"} + ] + } + ] + } + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "get" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Returns a child element by its key.\r\n * @param key Key\r\n * @return Child element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Returns a child element by its key.\r\n * @param key Key\r\n * @return Child element\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "getElement" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Makes a copy of a JSON element and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Makes a copy of a JSON element and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addElement" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonNull" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'null' type and adds a key-value pair to the object.\r\n * @param key Key\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'null' type and adds a key-value pair to the object.\r\n * @param key Key\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addNull" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonBoolean" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'boolean' type and adds a key-value pair to the object.\r\n * @param key Key\r\n @param value Boolean value\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'boolean' type and adds a key-value pair to the object.\r\n * @param key Key\r\n @param value Boolean value\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addBoolean" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "boolean", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonNumber" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'number' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the number\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'number' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the number\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addNumber" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "PrimitiveType", + "data": "double", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"}, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + } + ] + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonString" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'string' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the string\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates a child element of the 'string' type and adds a key-value pair to the object.\r\n * @param key Key\r\n * @param value Value of the string\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addString" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "value" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty array as a child of this object.\r\n * @param key Key\r\n * @return The empty array created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty array as a child of this object.\r\n * @param key Key\r\n * @return The empty array created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createArray" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonArray" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "VariableDeclarationExpr", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Variables", + "children": [ + { + "type": "VariableDeclarator", + "children": [ + { + "type": "Initializer", + "children": [ + { + "type": "ObjectCreationExpr", + "children": [ + { + "type": "Arguments", + "children": [ + {"type": "ThisExpr"} + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "child" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty object as a child of this object.\r\n * @param key Key\r\n * @return The empty object created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Creates an empty object as a child of this object.\r\n * @param key Key\r\n * @return The empty object created, so that it can be filled.\r\n " + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "createObject" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + {"type": "Annotations"}, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "IfStmt", + "children": [ + { + "type": "Condition", + "children": [ + { + "type": "UnaryExpr", + "data": "LOGICAL_COMPLEMENT", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "containsKey" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ThenStmt", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "add" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "keys" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "ExpressionStmt", + "children": [ + { + "type": "Expression", + "children": [ + { + "type": "MethodCallExpr", + "children": [ + { + "type": "Arguments", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + } + ] + }, + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + } + ] + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "put" + } + ] + }, + { + "type": "Scope", + "children": [ + { + "type": "NameExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elements" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Comment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Adds a child element (for internal use).\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + { + "type": "JavadocComment", + "children": [ + { + "type": "JavadocComment", + "data": "\r\n * Adds a child element (for internal use).\r\n * @param key Key\r\n * @param elem Element\r\n " + } + ] + }, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "addChild" + } + ] + }, + { + "type": "Parameters", + "children": [ + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "key" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "String" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + }, + { + "type": "Parameter", + "children": [ + {"type": "Annotations"}, + {"type": "Modifiers"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "elem" + } + ] + }, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonElement" + } + ] + } + ] + } + ] + }, + {"type": "VarArgsAnnotations"} + ] + } + ] + }, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "VoidType", + "children": [ + {"type": "Annotations"} + ] + } + ] + }, + {"type": "TypeParameters"} + ] + }, + { + "type": "MethodDeclaration", + "children": [ + { + "type": "Annotations", + "children": [ + { + "type": "MarkerAnnotationExpr", + "children": [ + { + "type": "Name", + "children": [ + { + "type": "Name", + "data": "Override" + } + ] + } + ] + } + ] + }, + { + "type": "Body", + "children": [ + { + "type": "BlockStmt", + "children": [ + { + "type": "Statements", + "children": [ + { + "type": "ReturnStmt", + "children": [ + { + "type": "Expression", + "children": [ + {"type": "ThisExpr"} + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "toJsonObject" + } + ] + }, + {"type": "Parameters"}, + {"type": "ThrownExceptions"}, + { + "type": "Type", + "children": [ + { + "type": "ClassOrInterfaceType", + "children": [ + {"type": "Annotations"}, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + } + ] + } + ] + }, + {"type": "TypeParameters"} + ] + } + ] + }, + { + "type": "Modifiers", + "children": [ + { + "type": "Modifier", + "data": "public" + }, + { + "type": "Modifier", + "data": "final" + } + ] + }, + { + "type": "Name", + "children": [ + { + "type": "SimpleName", + "data": "JsonObject" + } + ] + }, + {"type": "TypeParameters"} + ] + } + ] + } + ] + } +}