Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Compiler Tree API
PREV NEXT | FRAMES NO FRAMES

## Uses of Interface
com.sun.source.tree.CompilationUnitTree

Packages that use CompilationUnitTree
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).

Uses of CompilationUnitTree in com.sun.source.tree

Methods in com.sun.source.tree with parameters of type CompilationUnitTree
`R` | `TreeVisitor.visitCompilationUnit(CompilationUnitTree node, P p)`

Uses of CompilationUnitTree in com.sun.source.util

Methods in com.sun.source.util that return CompilationUnitTree
`CompilationUnitTree` | `TreePath.getCompilationUnit()` Get the compilation unit associated with this path.
`CompilationUnitTree` | `TaskEvent.getCompilationUnit()`

Methods in com.sun.source.util that return types with arguments of type CompilationUnitTree
`abstract Iterable<? extends CompilationUnitTree>` | `JavacTask.parse()` Parse the specified files returning a list of abstract syntax trees.

Methods in com.sun.source.util with parameters of type CompilationUnitTree
`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` | `SourcePositions.getStartPosition(CompilationUnitTree file, Tree tree)` Gets the starting position of tree within file.
`R` | `TreeScanner.visitCompilationUnit(CompilationUnitTree node, P p)`
`R` | `SimpleTreeVisitor.visitCompilationUnit(CompilationUnitTree node, P p)`

Constructors in com.sun.source.util with parameters of type CompilationUnitTree
`TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit)`
`TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz)`
`TreePath(CompilationUnitTree t)` Creates a TreePath for a root node.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Compiler Tree API
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved.