| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006, 2007 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* [email protected] - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
/* |
| 15 |
* Target for annotation processing test. Processing this |
| 16 |
* should result in generation of a class gen.HgcGen with |
| 17 |
* method public String foo(). |
| 18 |
* @see org.eclipse.jdt.compiler.apt.tests.processors.genclass.GenClassProc. |
| 19 |
*/ |
| 20 |
package targets.dispatch; |
| 21 |
|
| 22 |
import org.eclipse.jdt.compiler.apt.tests.annotations.GenClass; |
| 23 |
|
| 24 |
// This class will be generated by the annotation processor |
| 25 |
import gen.HgcGen; |
| 26 |
|
| 27 |
@GenClass(clazz="gen.HgcGen", method="foo") |
| 28 |
public class HasGenClass { |
| 29 |
String get() { |
| 30 |
return (new HgcGen()).foo(); |
| 31 |
} |
| 32 |
} |