01: /*******************************************************************************
02: * Copyright (c) 2007 BEA Systems, Inc.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * wharley@bea.com - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.apt.pluggable.tests.annotations;
11:
12: /**
13: * This annotation may be processed to generate a
14: * specified Java class.
15: */
16: public @interface GenClass6 {
17: /**
18: * Name of class to generate
19: */
20: String name();
21:
22: /**
23: * Name of package in which to place class
24: * (empty for default package)
25: */
26: String pkg() default "";
27:
28: /**
29: * Name of method to create
30: * (empty for no method creation)
31: */
32: String method() default "";
33:
34: /**
35: * Produce a summary .txt file which contains the names of all generated classes
36: * that specify this flag.
37: */
38: boolean summary() default false;
39:
40: /**
41: * Number of additional rounds to induce. If the number is greater than one, a GenClass6
42: * annotation will be added to the produced class, and given a rounds() value one less than the
43: * value specified here and an appropriately suffixed name() value. Thus, specifying rounds=2
44: * and name=Foo will produce Foo, which will be annotated with rounds=1 and name=Foo1, which
45: * will produce Foo1, which will not be annotated.
46: */
47: int rounds() default 1;
48: }
|