Skip to content

Instantly share code, notes, and snippets.

@jrfaller
Created November 21, 2018 14:04
Show Gist options
  • Save jrfaller/635ca88c5b1612c676f725ced4dc3b57 to your computer and use it in GitHub Desktop.
Save jrfaller/635ca88c5b1612c676f725ced4dc3b57 to your computer and use it in GitHub Desktop.
Match SimpleName: r(52) to SimpleName: r(68)
Match SimpleName: println(66) to SimpleName: println(49)
Match SimpleName: Random(45) to SimpleName: Random(61)
Match SimpleName: println(23) to SimpleName: println(23)
Match QualifiedName: System.out(65) to QualifiedName: System.out(48)
Match MethodInvocation(40) to MethodInvocation(40)
Match ClassInstanceCreation(47) to ClassInstanceCreation(63)
Match SimpleName: i(51) to SimpleName: i(67)
Match TypeDeclaration(72) to TypeDeclaration(85)
Match MethodDeclaration(71) to MethodDeclaration(54)
Match ExpressionStatement(11) to ExpressionStatement(11)
Match SimpleName: hello(6) to SimpleName: hello(6)
Match SimpleName: Random(42) to SimpleName: Random(58)
Match NumberLiteral: 10(58) to NumberLiteral: 10(74)
Match MethodInvocation(68) to MethodInvocation(51)
Match MethodInvocation(10) to MethodInvocation(10)
Match ExpressionStatement(64) to ExpressionStatement(80)
Match VariableDeclarationFragment(55) to VariableDeclarationFragment(71)
Match QualifiedName: System.out(12) to QualifiedName: System.out(12)
Match ExpressionStatement(26) to ExpressionStatement(26)
Match SimpleName: r(44) to SimpleName: r(60)
Match VariableDeclarationFragment(48) to VariableDeclarationFragment(64)
Match MethodInvocation(35) to MethodInvocation(35)
Match MethodInvocation(54) to MethodInvocation(70)
Match QualifiedName: java.util.Random(0) to QualifiedName: java.util.Random(0)
Match ExpressionStatement(21) to ExpressionStatement(21)
Match ExpressionStatement(41) to ExpressionStatement(41)
Match StringLiteral: "It draws a number at random"(24) to StringLiteral: "It draws a number at random"(24)
Match ExpressionStatement(60) to ExpressionStatement(76)
Match Assignment: *=(63) to Assignment: *=(79)
Match SimpleType: Random(43) to SimpleType: Random(59)
Match StringLiteral: "And displays it"(39) to StringLiteral: "And displays it"(39)
Match SimpleName: println(8) to SimpleName: println(8)
Match Assignment: +=(59) to Assignment: +=(75)
Match ExpressionStatement(36) to ExpressionStatement(36)
Match SimpleName: i(67) to SimpleName: i(50)
Match Modifier: public(4) to Modifier: public(4)
Match QualifiedName: System.out(27) to QualifiedName: System.out(27)
Match QualifiedName: System.out(22) to QualifiedName: System.out(22)
Match QualifiedName: System.out(32) to QualifiedName: System.out(32)
Match MethodInvocation(30) to MethodInvocation(30)
Match CompilationUnit(73) to CompilationUnit(86)
Match ImportDeclaration(1) to ImportDeclaration(1)
Match StringLiteral: "For the ASE 2014 conference"(19) to StringLiteral: "For the ASE 2014 conference"(19)
Match SimpleName: println(13) to SimpleName: println(13)
Match PrimitiveType: int(50) to PrimitiveType: int(66)
Match SimpleName: println(28) to SimpleName: println(28)
Match StringLiteral: "Hello everybody!"(9) to StringLiteral: "Hello everybody!"(9)
Match SimpleName: i(57) to SimpleName: i(73)
Match MethodInvocation(15) to MethodInvocation(15)
Match MethodInvocation(25) to MethodInvocation(25)
Match Block(70) to Block(53)
Match ExpressionStatement(31) to ExpressionStatement(31)
Match SimpleName: Example(3) to SimpleName: Example(3)
Match PrimitiveType: void(5) to PrimitiveType: void(5)
Match SimpleName: println(38) to SimpleName: println(38)
Match SimpleType: Random(46) to SimpleType: Random(62)
Match QualifiedName: System.out(17) to QualifiedName: System.out(17)
Match QualifiedName: System.out(7) to QualifiedName: System.out(7)
Match Modifier: public(2) to Modifier: public(2)
Match VariableDeclarationStatement(56) to VariableDeclarationStatement(72)
Match ExpressionStatement(69) to ExpressionStatement(52)
Match StringLiteral: "Multiplies by 10"(34) to StringLiteral: "Multiplies by 10"(34)
Match SimpleName: nextInt(53) to SimpleName: nextInt(69)
Match SimpleName: println(33) to SimpleName: println(33)
Match NumberLiteral: 10(62) to NumberLiteral: 10(78)
Match StringLiteral: "This code is a magnificent example"(14) to StringLiteral: "This code is a magnificent example"(14)
Match SimpleName: println(18) to SimpleName: println(18)
Match QualifiedName: System.out(37) to QualifiedName: System.out(37)
Match SimpleName: i(61) to SimpleName: i(77)
Match ExpressionStatement(16) to ExpressionStatement(16)
Match StringLiteral: "Adds 10"(29) to StringLiteral: "Adds 10"(29)
Match VariableDeclarationStatement(49) to VariableDeclarationStatement(65)
Match MethodInvocation(20) to MethodInvocation(20)
Insert MethodDeclaration(84) into TypeDeclaration(85) at 3
Insert Modifier: public(55) into MethodDeclaration(84) at 0
Insert PrimitiveType: int(56) into MethodDeclaration(84) at 1
Insert SimpleName: random(57) into MethodDeclaration(84) at 2
Insert Block(83) into MethodDeclaration(84) at 3
Insert VariableDeclarationStatement(47) into Block(53) at 7
Move VariableDeclarationStatement(49) into Block(83) at 0
Move VariableDeclarationStatement(56) into Block(83) at 1
Move ExpressionStatement(60) into Block(83) at 2
Move ExpressionStatement(64) into Block(83) at 3
Insert ReturnStatement(82) into Block(83) at 4
Insert PrimitiveType: int(42) into VariableDeclarationStatement(47) at 0
Insert VariableDeclarationFragment(46) into VariableDeclarationStatement(47) at 1
Insert SimpleName: i(81) into ReturnStatement(82) at 0
Insert SimpleName: i(43) into VariableDeclarationFragment(46) at 0
Insert MethodInvocation(45) into VariableDeclarationFragment(46) at 1
Insert SimpleName: random(44) into MethodInvocation(45) at 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment