1 package org.example;
2 
3 import java.util.Arrays;
4 
5 public class Example
6 [#extends#]
7 [#Object #]
8 [#implements #]
9 [#Runnable#]
10 [#, #]
11 [#Serializable #]
12 [#{#]
13 	public enum ExampleEnum
14 [#implements #]
15 [#Runnable#]
16 [#, #]
17 [#Serializable {#]
18 		/** doc */
19 		AAA
20 [#,#]
21 		/** doc */
22 		BBB,
23 		/** doc */
24 		CCC
25 [#, DDD,#]
26 [# EEE, FFF#]
27 	}
28 
29 	public int[] array = { 11111
30 [#, 22222, #]
31 			[#33333, #]
32 [#44444#]
33 [#					, 55555#]
34 	[# };#]
35 	public String[] array2 =
36 [#		new String[] {#]
37 [#		"aaaaa", "bbbbb"#]
38 [#};#]
39 	public Object[] array3 =
40 [#{ null,#]
41 [#		null#]
42 [#};#]
43 
44 	public void function1(Object
45 [#param1#]
46 [#, Object param2, #]
47 [#Object param3, Object param4#]
48 [#) throws Exc1, Ex2, Ex3 {#]
49 		List<String> strings = Arrays.asList("aaa",
50 [#"bbb", "ccc"#]
51 [#, "ddd"#]
52 [#);#]
53 
54 		int aa = 11111,
55 [#bb = 22222, cc = 33333#]
56 [#, dd = 44444#]
57 [#;#]
58 
59 		param1
60 [#.field1.field2.#]
61 [#field3.function(#]
62 [#);#]
63 
64 		param2.function1()
65 [#.function2(#]
66 [#).function3().#]
67 [#function4();#]
68 
69 		String sss1 = this.array.length > 3
70 		[#? "yes" #]
71 		[#: "no";#]
72 		String sss2 = this.array.length > 3 ?
73 [#"yes" : #]
74 [#"no";#]
75 
76 		try (InputStream in = new IStream();
77 [# OutputStream out = new OStream()#]
78 [#; Object o = null) {#]
79 			System.out.println(
80 [#aa * #]
81 [#(aa + bb) #]
82 [#* cc * (cc #]
83 [#+ aa#]
84 [#)#]
85 [#);#]
86 		} catch (Exception1
87 [#| Exception2 |#]
88 [# Exception3 e) {#]
89 			System.out.println(
90 [#param3.function1(#]
91 [#aa, #]
92 [#bb#]
93 [#)#]
94 [#);#]
95 		}
96 
97 		[#	this.getWriter().println("aaaaa" + //#]
98 				[#		"bbbbbb" + //      #]
99 						[#	"ccc");#]
100 	}
101 }