Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3147ea1daafcbda6fd29d3fdd28fd5bffd3d7825 (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
/*******************************************************************************
 * Copyright (c) 2005, 2007 BEA Systems, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   wharley - initial API and implementation
 *******************************************************************************/

package org.eclipse.jdt.apt.tests.external.annotations.loadertest;

/**
 * Code example used to test the annotation processor factory loader.
 */
public class LoaderTestCodeExample {
	public static final String CODE_PACKAGE = "loadertestpackage";
	public static final String CODE_CLASS_NAME = "LoaderTestClass";
	public static final String CODE_FULL_NAME = CODE_PACKAGE + "." + CODE_CLASS_NAME;

	public static final String CODE = 
		"package loadertestpackage;\n" +
		"import org.eclipse.jdt.apt.tests.external.annotations.loadertest.LoaderTestAnnotation;" + "\n" +
		"@LoaderTestAnnotation" + "\n" +
		"public class LoaderTestClass {" + "\n" +
		"    public static void SayHello() {" + "\n" +
		"        System.out.println(\"hello\");" + "\n" +
		"    }" + "\n" +
		"}";
}

Back to the top