com.sun.source.util |
Provides utilities for operations on abstract syntax trees (AST). |
Java Source File Name | Type | Comment |
JavacTask.java | Class | Provides access to functionality specific to the Sun Java Compiler, javac. |
package-info.java | | |
SimpleTreeVisitor.java | Class | A simple visitor for tree nodes. |
SourcePositions.java | Interface | Provides methods to obtain the position of a Tree within a CompilationUnit. |
TaskEvent.java | Class | Provides details about work that has been done by the Sun Java Compiler, javac. |
TaskListener.java | Interface | Provides a listener to monitor the activity of the Sun Java Compiler, javac. |
TreePath.java | Class | A path of tree nodes, typically used to represent the sequence of ancestor
nodes of a tree node up to the top level CompilationUnitTree node. |
TreePathScanner.java | Class | A TreeVisitor that visits all the child tree nodes, and provides
support for maintaining a path for the parent nodes. |
Trees.java | Class | Bridges JSR 199, JSR 269, and the Tree API. |
TreeScanner.java | Class | A TreeVisitor that visits all the child tree nodes.
To visit nodes of a particular type, just override the
corresponding visitXYZ method.
Inside your method, call super.visitXYZ to visit descendant
nodes.
The default implementation of the visitXYZ methods will determine
a result as follows:
- If the node being visited has no children, the result will be null.
- If the node being visited has one child, the result will be the
result of calling
scan on that child.
|