public static final class Parser.ParseResult extends Object
Trees
instance for a parse task.
Note: It is possible for the Trees
instance contained within a ParseResult
to be invalidated by a call to JavacTaskImpl.cleanup()
. Though
we do not currently expose the JavacTask
used to create a ParseResult
to cleanup()
calls on its underlying implementation, this should be acknowledged as an
implementation detail that could cause unexpected behavior when making calls to methods in
Trees
.
Modifier and Type | Method and Description |
---|---|
Iterable<? extends com.sun.source.tree.CompilationUnitTree> |
compilationUnits() |
com.google.common.collect.ImmutableListMultimap<Diagnostic.Kind,Diagnostic<? extends JavaFileObject>> |
diagnosticsByKind() |
com.sun.source.util.Trees |
trees() |
public com.google.common.collect.ImmutableListMultimap<Diagnostic.Kind,Diagnostic<? extends JavaFileObject>> diagnosticsByKind()
public Iterable<? extends com.sun.source.tree.CompilationUnitTree> compilationUnits()
public com.sun.source.util.Trees trees()