Package | Description |
---|---|
com.sun.source.tree |
Provides interfaces to represent source code as abstract syntax
trees (AST).
|
com.sun.source.util |
Provides utilities for operations on abstract syntax trees (AST).
|
com.sun.tools.javac.api | |
com.sun.tools.javac.tree |
Modifier and Type | Method and Description |
---|---|
R |
TreeVisitor.visitCompilationUnit(CompilationUnitTree node,
P p) |
Modifier and Type | Method and Description |
---|---|
CompilationUnitTree |
TaskEvent.getCompilationUnit() |
CompilationUnitTree |
TreePath.getCompilationUnit()
Get the compilation unit associated with this path.
|
Modifier and Type | Method and Description |
---|---|
abstract Iterable<? extends CompilationUnitTree> |
JavacTask.parse()
Parse the specified files returning a list of abstract syntax trees.
|
Modifier and Type | Method and Description |
---|---|
long |
DocSourcePositions.getEndPosition(CompilationUnitTree file,
DocCommentTree comment,
DocTree tree)
Gets the ending position of the tree within the comment within the file.
|
long |
SourcePositions.getEndPosition(CompilationUnitTree file,
Tree tree)
Gets the ending position of tree within file.
|
static TreePath |
TreePath.getPath(CompilationUnitTree unit,
Tree target)
Gets a tree path for a tree node within a compilation unit.
|
abstract TreePath |
Trees.getPath(CompilationUnitTree unit,
Tree node)
Gets the path to tree node within the specified compilation unit.
|
long |
DocSourcePositions.getStartPosition(CompilationUnitTree file,
DocCommentTree comment,
DocTree tree)
Gets the starting position of the tree within the comment within the file.
|
long |
SourcePositions.getStartPosition(CompilationUnitTree file,
Tree tree)
Gets the starting position of tree within file.
|
abstract void |
DocTrees.printMessage(Diagnostic.Kind kind,
CharSequence msg,
DocTree t,
DocCommentTree c,
CompilationUnitTree root)
Prints a message of the specified kind at the location of the
tree within the provided compilation unit
|
abstract void |
Trees.printMessage(Diagnostic.Kind kind,
CharSequence msg,
Tree t,
CompilationUnitTree root)
Prints a message of the specified kind at the location of the
tree within the provided compilation unit
|
R |
SimpleTreeVisitor.visitCompilationUnit(CompilationUnitTree node,
P p) |
R |
TreeScanner.visitCompilationUnit(CompilationUnitTree node,
P p) |
Constructor and Description |
---|
TaskEvent(TaskEvent.Kind kind,
CompilationUnitTree unit) |
TaskEvent(TaskEvent.Kind kind,
CompilationUnitTree unit,
TypeElement clazz) |
TreePath(CompilationUnitTree t)
Creates a TreePath for a root node.
|
Modifier and Type | Method and Description |
---|---|
Iterable<? extends CompilationUnitTree> |
BasicJavacTask.parse() |
Iterable<? extends CompilationUnitTree> |
JavacTaskImpl.parse()
Parse the specified files returning a list of abstract syntax trees.
|
Modifier and Type | Method and Description |
---|---|
TreePath |
JavacTrees.getPath(CompilationUnitTree unit,
Tree node) |
Iterable<? extends Tree> |
JavacTaskImpl.pathFor(CompilationUnitTree unit,
Tree node) |
void |
JavacTrees.printMessage(Diagnostic.Kind kind,
CharSequence msg,
DocTree t,
DocCommentTree c,
CompilationUnitTree root) |
void |
JavacTrees.printMessage(Diagnostic.Kind kind,
CharSequence msg,
Tree t,
CompilationUnitTree root)
Prints a message of the specified kind at the location of the
tree within the provided compilation unit
|
Modifier and Type | Method and Description |
---|---|
Iterable<? extends TypeElement> |
JavacTaskImpl.enter(Iterable<? extends CompilationUnitTree> trees)
Translate the given abstract syntax trees to elements.
|
Modifier and Type | Class and Description |
---|---|
static class |
JCTree.JCCompilationUnit
Everything in one source file is kept in a JCTree.JCCompilationUnit structure.
|
Modifier and Type | Method and Description |
---|---|
JCTree |
TreeCopier.visitCompilationUnit(CompilationUnitTree node,
P p) |
Copyright © 2017 earcam. All rights reserved.