public final class Parser extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Parser.ParseResult
The diagnostic, parse trees, and  
Trees instance for a parse task. | 
| 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 boolean | 
hasErrorNode(com.sun.source.tree.Tree tree)
Returns  
true if the tree contains at least one "erroneous"
 node. | 
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> 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 Element> parse(JavaFileObject... sources)
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.public static boolean hasErrorNode(com.sun.source.tree.Tree tree)
true if the tree contains at least one "erroneous"
 node.