Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 929163d9188bf42145a1070fd6687ea6706ddf9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * Copyright (c) 2005, 2007 BEA Systems, Inc. 
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *    sbandow@bea.com - initial API and implementation
 *    
 *******************************************************************************/

package org.eclipse.jdt.apt.tests.annotations.mirrortest;

public class MirrorDeclarationCodeExample
{
	public static final String CODE_PACKAGE = "mirrortestpackage";
	public static final String CODE_CLASS_NAME = "DeclarationTestClass";
	public static final String CODE_FULL_NAME = CODE_PACKAGE + "." + CODE_CLASS_NAME;

	public static final String CODE = 
		"package mirrortestpackage;\n" +
		"import org.eclipse.jdt.apt.tests.annotations.mirrortest.MirrorDeclarationTestAnnotation;" + "\n" +
		"@MirrorDeclarationTestAnnotation(s=\"fred\", value=5)" + "\n" +
		"public class DeclarationTestClass {" + "\n" +
		"	public class ClassDec {" + "\n" +
		"		public ClassDec() {}" + "\n" +
		"		public ClassDec(int j) {}" + "\n" +
		"		public static final int i = 1;" + "\n" +
		"		public float f;" + "\n" +
		"		public static final String s = \"hello\";" + "\n" +
		"		public java.util.GregorianCalendar gc;" + "\n" +
		"		public void methodDec(int k, String... t) throws Exception {}" + "\n" +
		"		public void methodDecNoArg(){}" + "\n" +
		"		@MirrorDeclarationTestAnnotation() public Object foo(Object o) throws Exception {\n" +
		"			return null;\n" +
		"		}\n" +
		"		@MirrorDeclarationTestAnnotation() public Object foo2(Object o) throws Exception {\n" +
		"			return null;\n" +
		"		}\n" +
		"		@MirrorDeclarationTestAnnotation() public Object foo3(Object o) throws Exception {\n" +
		"			return null;\n" +
		"		}\n" +
		"	}" + "\n" +
		"	public enum EnumDec {" + "\n" +
		"		aardvark, anteater" + "\n" +
		"	}" + "\n" +
		"}";
}

Back to the top