# Uses of Interface
jdk.nashorn.api.tree.ModuleTree

Packages that use ModuleTree
Package | Description
--- | ---
jdk.nashorn.api.tree | Nashorn parser API provides interfaces to represent ECMAScript source code as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.

## Uses of ModuleTree in jdk.nashorn.api.tree

Methods in jdk.nashorn.api.tree that return ModuleTree
Modifier and Type | Method | Description
--- | --- | ---
`ModuleTree` | CompilationUnitTree.`getModule()` | Deprecated, for removal: This API element is subject to removal in a future version. Return the `ModuleTree` associated with this compilation unit.

Methods in jdk.nashorn.api.tree with parameters of type ModuleTree
Modifier and Type | Method | Description
--- | --- | ---
`R` | SimpleTreeVisitorES5_1.`visitModule​(ModuleTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. Visits a `ModuleTree` tree by calling `visitUnknown`.
`R` | SimpleTreeVisitorES6.`visitModule​(ModuleTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. Visit Module tree.
`R` | TreeVisitor.`visitModule​(ModuleTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. Visit Module tree.