Uses of Interface
com.sun.source.tree.CompilationUnitTree
Packages that use CompilationUnitTree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
Provides utilities for operations on abstract syntax trees (AST).
-
Uses of CompilationUnitTree in com.sun.source.tree
Methods in com.sun.source.tree with parameters of type CompilationUnitTreeModifier and TypeMethodDescriptionTreeVisitor.visitCompilationUnit(CompilationUnitTree node, P p) Visits aCompilationUnitTreenode. -
Uses of CompilationUnitTree in com.sun.source.util
Methods in com.sun.source.util that return CompilationUnitTreeModifier and TypeMethodDescriptionTaskEvent.getCompilationUnit()Returns the compilation unit for this event.TreePath.getCompilationUnit()Returns the compilation unit associated with this path.Methods in com.sun.source.util that return types with arguments of type CompilationUnitTreeModifier and TypeMethodDescriptionabstract Iterable<? extends CompilationUnitTree> JavacTask.parse()Parses the specified files returning a list of abstract syntax trees.Methods in com.sun.source.util with parameters of type CompilationUnitTreeModifier and TypeMethodDescriptionlongDocSourcePositions.getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree) Returns the ending position of the tree within the comment within the file.longSourcePositions.getEndPosition(CompilationUnitTree file, Tree tree) Returns the ending position of tree within file.static TreePathTreePath.getPath(CompilationUnitTree unit, Tree target) Returns a tree path for a tree node within a compilation unit, ornullif the node is not found.abstract TreePathTrees.getPath(CompilationUnitTree unit, Tree node) Returns the path to tree node within the specified compilation unit.longDocSourcePositions.getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree) Returns the starting position of the tree within the comment within the file.longSourcePositions.getStartPosition(CompilationUnitTree file, Tree tree) Returns the starting position of tree within file.abstract voidDocTrees.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 voidTrees.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 unitSimpleTreeVisitor.visitCompilationUnit(CompilationUnitTree node, P p) Visits aCompilationUnitTreenode.TreeScanner.visitCompilationUnit(CompilationUnitTree node, P p) Visits aCompilationUnitTreenode.Constructors in com.sun.source.util with parameters of type CompilationUnitTreeModifierConstructorDescriptionTaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit) Creates a task event for a given kind and compilation unit.TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz) Creates a task event for a given kind, compilation unit and type element.TreePath(CompilationUnitTree node) Creates a TreePath for a root node.