blob: bad9b38c19a3680d2ac07826f319814921957201 (
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
|
/*******************************************************************************
* Copyright (c) 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:
* wharley@bea.com - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.compiler.apt.tests.annotations;
/**
* This annotation may be processed to generate a non-Java resource,
* using the Filer.createResource() API
*/
public @interface GenResource {
/**
* package location in which to generate the file, relative to generated file output location.
*/
String pkg() default "";
/**
* path of resource file to generate, relative to pkg.
*/
String relativeName();
/**
* content of generated resource, or empty string to use binaryContent
*/
String stringContent() default "";
/**
* content of generated resource, if stringContent is empty
*/
byte[] binaryContent() default {};
}
|