## Uses of Class
org.eclipse.wst.jsdt.core.dom.JavaScriptUnit

Packages that use JavaScriptUnit
org.eclipse.wst.jsdt.core
org.eclipse.wst.jsdt.core.compiler
org.eclipse.wst.jsdt.core.dom
org.eclipse.wst.jsdt.core.dom.rewrite
org.eclipse.wst.jsdt.core.infer
org.eclipse.wst.jsdt.core.util
org.eclipse.wst.jsdt.js.common.build.system.util
org.eclipse.wst.jsdt.ui
org.eclipse.wst.jsdt.ui.actions
org.eclipse.wst.jsdt.ui.text.java

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core

Methods in org.eclipse.wst.jsdt.core that return JavaScriptUnit
`JavaScriptUnit` IJavaScriptElementDelta.`getJavaScriptUnitAST()` Returns the javaScript unit AST created by the last reconcile operation on this delta's element.

`JavaScriptUnit`

IJavaScriptUnit.`reconcile(int astLevel, boolean forceProblemDetection, boolean enableStatementsRecovery, WorkingCopyOwner owner, IProgressMonitor monitor)`
Reconciles the contents of this working copy, sends out a JavaScript delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (`IOpenable.makeConsistent(IProgressMonitor)`), and returns a javaScript file AST if requested.

`JavaScriptUnit`

IJavaScriptUnit.`reconcile(int astLevel, boolean forceProblemDetection, WorkingCopyOwner owner, IProgressMonitor monitor)`
Reconciles the contents of this working copy, sends out a JavaScript delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (`IOpenable.makeConsistent(IProgressMonitor)`), and returns a javaScript file AST if requested.

`JavaScriptUnit`

IJavaScriptUnit.`reconcile(int astLevel, int reconcileFlags, WorkingCopyOwner owner, IProgressMonitor monitor)`
Reconciles the contents of this working copy, sends out a JavaScript delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (`IOpenable.makeConsistent(IProgressMonitor)`), and returns a javaScript file AST if requested.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core.compiler

Methods in org.eclipse.wst.jsdt.core.compiler that return JavaScriptUnit
`JavaScriptUnit` ReconcileContext.`getAST3()` Returns a resolved AST with `JLS3` level.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core.dom

Methods in org.eclipse.wst.jsdt.core.dom that return JavaScriptUnit
`static JavaScriptUnit` AST.`convertCompilationUnit(int level, org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, java.util.Map options, boolean isResolved, org.eclipse.wst.jsdt.internal.core.CompilationUnit workingCopy, int reconcileFlags, IProgressMonitor monitor)` Internal method.
`JavaScriptUnit` AST.`newJavaScriptUnit()` Creates an unparented javaScript unit node owned by this AST.

Methods in org.eclipse.wst.jsdt.core.dom with parameters of type JavaScriptUnit
`void` ASTRequestor.`acceptAST(IJavaScriptUnit source, JavaScriptUnit ast)` Accepts an AST corresponding to the javaScript unit.
`void` DefaultASTVisitor.`endVisit(JavaScriptUnit node)`
`void` ASTVisitor.`endVisit(JavaScriptUnit node)` End of visit the given type-specific AST node.
`boolean` ASTMatcher.`match(JavaScriptUnit node, java.lang.Object other)` Returns whether the given node and the other object match.
`boolean` DefaultASTVisitor.`visit(JavaScriptUnit node)`
`boolean` ASTVisitor.`visit(JavaScriptUnit node)` Visits the given type-specific AST node.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core.dom.rewrite

Methods in org.eclipse.wst.jsdt.core.dom.rewrite with parameters of type JavaScriptUnit
`static ImportRewrite` ImportRewrite.`create(JavaScriptUnit astRoot, boolean restoreExistingImports)` Creates a `ImportRewrite` from a an AST (`JavaScriptUnit`).

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core.infer

Methods in org.eclipse.wst.jsdt.core.infer with parameters of type JavaScriptUnit
`int` ImportRewriteSupport.`getImportStartPosition(JavaScriptUnit root)` Find the starting position of an import when none already exist

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.core.util

Methods in org.eclipse.wst.jsdt.core.util with parameters of type JavaScriptUnit
`static TextEdit` JavaScriptUnitSorter.`sort(JavaScriptUnit unit, java.util.Comparator comparator, int options, TextEditGroup group, IProgressMonitor monitor)` Reorders the declarations in the given javascript unit according to the specified comparator.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.js.common.build.system.util

Methods in org.eclipse.wst.jsdt.js.common.build.system.util that return JavaScriptUnit
`static JavaScriptUnit` ASTUtil.`getJavaScriptUnit(IFile file)`

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.ui

Methods in org.eclipse.wst.jsdt.ui with parameters of type JavaScriptUnit
`static ImportRewrite` CodeStyleConfiguration.`createImportRewrite(JavaScriptUnit astRoot, boolean restoreExistingImports)` Returns a `ImportRewrite` using `ImportRewrite.create(JavaScriptUnit, boolean)` and configures the rewriter with the settings as specified in the JDT UI preferences.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.ui.actions

Methods in org.eclipse.wst.jsdt.ui.actions with parameters of type JavaScriptUnit
`static IWorkspaceRunnable` OverrideMethodsAction.`createRunnable(JavaScriptUnit astRoot, ITypeBinding type, IFunctionBinding[] methodToOverride, int insertPos, boolean createComments)` Returns a runnable that creates the method stubs for overridden methods.
`static IWorkspaceRunnable` AddUnimplementedConstructorsAction.`createRunnable(JavaScriptUnit astRoot, ITypeBinding type, IFunctionBinding[] constructorsToOverride, int insertPos, boolean createComments, int visibility, boolean omitSuper)` Returns a runnable that creates the constructor stubs.

### Uses of JavaScriptUnit in org.eclipse.wst.jsdt.ui.text.java

Methods in org.eclipse.wst.jsdt.ui.text.java that return JavaScriptUnit
`JavaScriptUnit` IInvocationContext.`getASTRoot()` Returns an AST of the compilation unit, possibly only a partial AST focused on the selection offset (see `ASTParser.setFocalPosition(int)`).

Methods in org.eclipse.wst.jsdt.ui.text.java with parameters of type JavaScriptUnit
`ASTNode` IProblemLocation.`getCoveredNode(JavaScriptUnit astRoot)` Convenience method to evaluate the AST node covered by this problem.
`ASTNode` IProblemLocation.`getCoveringNode(JavaScriptUnit astRoot)` Convenience method to evaluate the AST node covering this problem.