public static final class Parser.ParseResult
extends java.lang.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 |
---|---|
java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> |
compilationUnits() |
com.google.common.collect.ImmutableListMultimap<javax.tools.Diagnostic.Kind,javax.tools.Diagnostic<? extends javax.tools.JavaFileObject>> |
diagnosticsByKind() |
com.sun.source.util.Trees |
trees() |
public com.google.common.collect.ImmutableListMultimap<javax.tools.Diagnostic.Kind,javax.tools.Diagnostic<? extends javax.tools.JavaFileObject>> diagnosticsByKind()
public java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> compilationUnits()
public com.sun.source.util.Trees trees()