Java: Override toString() for statements

Additionally remove redundant QLDoc which is inherited anyways.
This commit is contained in:
Marcono1234
2021-04-27 18:54:52 +02:00
parent ffad65be40
commit 7e778bc008
72 changed files with 2935 additions and 2939 deletions

View File

@@ -2,22 +2,22 @@ constructors/A.java:
# 0| [CompilationUnit] A
# 3| 1: [Class] A
# 4| 3: [Constructor] A
# 4| 5: [BlockStmt] stmt
# 4| 5: [BlockStmt] { ... }
# 5| 0: [ThisConstructorInvocationStmt] this(...)
# 5| 0: [IntegerLiteral] 42
# 8| 4: [Constructor] A
#-----| 4: (Parameters)
# 8| 0: [Parameter] i
# 8| 0: [TypeAccess] int
# 8| 5: [BlockStmt] stmt
# 8| 5: [BlockStmt] { ... }
# 10| 5: [Method] main
# 10| 3: [TypeAccess] void
#-----| 4: (Parameters)
# 10| 0: [Parameter] args
# 10| 0: [ArrayTypeAccess] ...[]
# 10| 0: [TypeAccess] String
# 10| 5: [BlockStmt] stmt
# 11| 0: [ExprStmt] stmt
# 10| 5: [BlockStmt] { ... }
# 11| 0: [ExprStmt] ...;
# 11| 0: [ClassInstanceExpr] new A(...)
# 11| -3: [TypeAccess] A
# 14| 6: [FieldDeclaration] String STATIC, ...;
@@ -26,14 +26,14 @@ constructors/A.java:
# 15| 7: [FieldDeclaration] String INSTANCE, ...;
# 15| -1: [TypeAccess] String
# 15| 0: [StringLiteral] "instance string"
# 17| 8: [BlockStmt] stmt
# 18| 0: [ExprStmt] stmt
# 17| 8: [BlockStmt] { ... }
# 18| 0: [ExprStmt] ...;
# 18| 0: [MethodAccess] println(...)
# 18| -1: [VarAccess] System.out
# 18| -1: [TypeAccess] System
# 18| 0: [StringLiteral] "<obinit>"
# 21| 9: [BlockStmt] stmt
# 22| 0: [ExprStmt] stmt
# 21| 9: [BlockStmt] { ... }
# 22| 0: [ExprStmt] ...;
# 22| 0: [MethodAccess] println(...)
# 22| -1: [VarAccess] System.out
# 22| -1: [TypeAccess] System