@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Compile
CompileTestCase. The method also need annotated @Test
and it must be public void and have one argument with type RoundEnvironment.| Modifier and Type | Required Element and Description |
|---|---|
String[] |
sources
The source files to compile.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Annotation>[] |
annotations
Supported annotations.
|
SourceVersion |
version
Supported source version.
|
public abstract String[] sources
Class.getResource(String).public abstract Class<? extends Annotation>[] annotations
public abstract SourceVersion version
Copyright © 2018. All rights reserved.