public final class Parser extends Object
Constructor and Description |
---|
Parser() |
Modifier and Type | Method and Description |
---|---|
static Iterable<? extends JavaFileObject> |
generate(JavaFileObject... sources)
Parses
sources into compilation units. |
static Iterable<? extends JavaFileObject> |
generate(String className,
String code)
Parses
sources into compilation units. |
static Iterable<? extends Element> |
parse(JavaFileObject... sources)
Parses
sources into compilation units. |
static Iterable<? extends Element> |
parseLines(String className,
String... lines)
Parses
sources into compilation units. |
public static Iterable<? extends Element> parse(JavaFileObject... sources)
sources
into compilation units. This method
does not compile the sources.public static Iterable<? extends Element> parseLines(String className, String... lines)
sources
into compilation units. This method
does not compile the sources.public static Iterable<? extends JavaFileObject> generate(String className, String code)
sources
into compilation units. This method
does not compile the sources.public static Iterable<? extends JavaFileObject> generate(JavaFileObject... sources)
sources
into compilation units. This method
does not compile the sources.sources
- The sources