Uses of Class
org.eclipse.jdt.core.dom.CompilationUnit
-
Packages that use CompilationUnit Package Description org.eclipse.jdt.apt.core.env This package contains Eclipse extensions to some of the Sun annotation processing APIs.org.eclipse.jdt.core The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.org.eclipse.jdt.core.compiler This package contains compiler associated infrastructure APIs.org.eclipse.jdt.core.dom The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.org.eclipse.jdt.core.dom.rewrite The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.org.eclipse.jdt.core.manipulation Application programming interface for the JDT core manipulation plug-in class.org.eclipse.jdt.core.util Provides a set of tools and utilities for manipulating .class files and Java model elements.org.eclipse.jdt.ui Application programming interfaces for interaction with the Eclipse Java User Interface.org.eclipse.jdt.ui.actions Application programming interfaces for Eclipse Java User Interface specific actions.org.eclipse.jdt.ui.cleanup Application programming interfaces for code clean up.org.eclipse.jdt.ui.text.java Application programming interfaces for interaction with the Eclipse Java User Interface.org.eclipse.jdt.ui.text.java.correction Application programming interfaces for correction proposals. -
-
Uses of CompilationUnit in org.eclipse.jdt.apt.core.env
Methods in org.eclipse.jdt.apt.core.env that return CompilationUnit Modifier and Type Method Description CompilationUnitEclipseAnnotationProcessorEnvironment. getAST()Return the AST of the file currently being processed. -
Uses of CompilationUnit in org.eclipse.jdt.core
Methods in org.eclipse.jdt.core that return CompilationUnit Modifier and Type Method Description CompilationUnitIJavaElementDelta. getCompilationUnitAST()Returns the compilation unit AST created by the last reconcile operation on this delta's element.CompilationUnitICompilationUnit. reconcile(int astLevel, boolean forceProblemDetection, boolean enableStatementsRecovery, WorkingCopyOwner owner, IProgressMonitor monitor)Reconciles the contents of this working copy, sends out a Java 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 compilation unit AST if requested.CompilationUnitICompilationUnit. reconcile(int astLevel, boolean forceProblemDetection, WorkingCopyOwner owner, IProgressMonitor monitor)Reconciles the contents of this working copy, sends out a Java 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 compilation unit AST if requested.CompilationUnitICompilationUnit. reconcile(int astLevel, int reconcileFlags, WorkingCopyOwner owner, IProgressMonitor monitor)Reconciles the contents of this working copy, sends out a Java 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 compilation unit AST if requested. -
Uses of CompilationUnit in org.eclipse.jdt.core.compiler
Methods in org.eclipse.jdt.core.compiler that return CompilationUnit Modifier and Type Method Description CompilationUnitReconcileContext. getAST(int level)Returns a resolved AST with the given AST level.CompilationUnitReconcileContext. getAST3()Deprecated.JLS3 has been deprecated.CompilationUnitReconcileContext. getAST4()Deprecated.JLS4 has been deprecated.CompilationUnitReconcileContext. getAST8()Deprecated.JLS8 has been deprecated. -
Uses of CompilationUnit in org.eclipse.jdt.core.dom
Methods in org.eclipse.jdt.core.dom that return CompilationUnit Modifier and Type Method Description static CompilationUnitAST. convertCompilationUnit(int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, int reconcileFlags, IProgressMonitor monitor)Deprecated.Use org.eclipse.jdt.core.dom.AST.convertCompilationUnit(int, CompilationUnitDeclaration, Map, boolean, CompilationUnit, int, IProgressMonitor) insteadstatic CompilationUnitAST. convertCompilationUnit(int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, int reconcileFlags, IProgressMonitor monitor)Internal method.CompilationUnitAST. newCompilationUnit()Creates an unparented compilation unit node owned by this AST.static CompilationUnitAST. parseCompilationUnit(char[] source)Deprecated.UseASTParserinstead.static CompilationUnitAST. parseCompilationUnit(char[] source, String unitName, IJavaProject project)Deprecated.UseASTParserinstead.static CompilationUnitAST. parseCompilationUnit(IClassFile classFile, boolean resolveBindings)Deprecated.UseASTParserinstead.static CompilationUnitAST. parseCompilationUnit(ICompilationUnit unit, boolean resolveBindings)Deprecated.UseASTParserinstead.Methods in org.eclipse.jdt.core.dom with parameters of type CompilationUnit Modifier and Type Method Description voidASTRequestor. acceptAST(ICompilationUnit source, CompilationUnit ast)Accepts an AST corresponding to the compilation unit.voidFileASTRequestor. acceptAST(String sourceFilePath, CompilationUnit ast)Accepts an AST corresponding to the compilation unit.voidASTVisitor. endVisit(CompilationUnit node)End of visit the given type-specific AST node.booleanASTMatcher. match(CompilationUnit node, Object other)Returns whether the given node and the other object match.booleanASTVisitor. visit(CompilationUnit node)Visits the given type-specific AST node. -
Uses of CompilationUnit in org.eclipse.jdt.core.dom.rewrite
Methods in org.eclipse.jdt.core.dom.rewrite with parameters of type CompilationUnit Modifier and Type Method Description static ImportRewriteImportRewrite. create(CompilationUnit astRoot, boolean restoreExistingImports)Creates anImportRewritefrom an AST (CompilationUnit). -
Uses of CompilationUnit in org.eclipse.jdt.core.manipulation
Methods in org.eclipse.jdt.core.manipulation that return CompilationUnit Modifier and Type Method Description CompilationUnitCleanUpContextCore. getAST()An AST built from the compilation unit to fix.CompilationUnitCoreASTProvider. getAST(ITypeRoot input, CoreASTProvider.WAIT_FLAG waitFlag, IProgressMonitor progressMonitor)Returns a shared compilation unit AST for the given Java element.static CompilationUnitSharedASTProviderCore. getAST(ITypeRoot element, SharedASTProviderCore.WAIT_FLAG waitFlag, IProgressMonitor progressMonitor)Returns a compilation unit AST for the given Java element.CompilationUnitCoreASTProvider. getCachedAST()Methods in org.eclipse.jdt.core.manipulation with parameters of type CompilationUnit Modifier and Type Method Description voidCoreASTProvider. cache(CompilationUnit ast, ITypeRoot javaElement)Caches the given compilation unit AST for the given Java element.static ImportRewriteCodeStyleConfiguration. createImportRewrite(CompilationUnit astRoot, boolean restoreExistingImports)Returns aImportRewriteusingImportRewrite.create(CompilationUnit, boolean)and configures the rewriter with the settings as specified in the JDT UI preferences.voidCoreASTProvider. reconciled(CompilationUnit ast, ITypeRoot javaElement, IProgressMonitor progressMonitor)Update internal structures after reconcile.Constructors in org.eclipse.jdt.core.manipulation with parameters of type CompilationUnit Constructor Description CleanUpContextCore(ICompilationUnit unit, CompilationUnit ast)Creates a new clean up context.OrganizeImportsOperation(ICompilationUnit cu, CompilationUnit astRoot, boolean ignoreLowerCaseNames, boolean save, boolean allowSyntaxErrors, OrganizeImportsOperation.IChooseImportQuery chooseImportQuery)Creates a new OrganizeImportsOperation operation. -
Uses of CompilationUnit in org.eclipse.jdt.core.util
Methods in org.eclipse.jdt.core.util with parameters of type CompilationUnit Modifier and Type Method Description static TextEditCompilationUnitSorter. sort(CompilationUnit unit, Comparator comparator, int options, TextEditGroup group, IProgressMonitor monitor)Reorders the declarations in the given compilation unit according to the specified comparator. -
Uses of CompilationUnit in org.eclipse.jdt.ui
Methods in org.eclipse.jdt.ui that return CompilationUnit Modifier and Type Method Description static CompilationUnitSharedASTProvider. getAST(ITypeRoot element, SharedASTProvider.WAIT_FLAG waitFlag, IProgressMonitor progressMonitor)Deprecated.Returns a compilation unit AST for the given Java element.Methods in org.eclipse.jdt.ui with parameters of type CompilationUnit Modifier and Type Method Description static ImportRewriteCodeStyleConfiguration. createImportRewrite(CompilationUnit astRoot, boolean restoreExistingImports)Returns aImportRewriteusingImportRewrite.create(CompilationUnit, boolean)and configures the rewriter with the settings as specified in the JDT UI preferences. -
Uses of CompilationUnit in org.eclipse.jdt.ui.actions
Methods in org.eclipse.jdt.ui.actions with parameters of type CompilationUnit Modifier and Type Method Description static IWorkspaceRunnableAddUnimplementedConstructorsAction. createRunnable(CompilationUnit astRoot, ITypeBinding type, IMethodBinding[] constructorsToOverride, int insertPos, boolean createComments, int visibility, boolean omitSuper)Returns a runnable that creates the constructor stubs.static IWorkspaceRunnableOverrideMethodsAction. createRunnable(CompilationUnit astRoot, ITypeBinding type, IMethodBinding[] methodToOverride, int insertPos, boolean createComments)Returns a runnable that creates the method stubs for overridden methods. -
Uses of CompilationUnit in org.eclipse.jdt.ui.cleanup
Methods in org.eclipse.jdt.ui.cleanup that return CompilationUnit Modifier and Type Method Description CompilationUnitCleanUpContext. getAST()Constructors in org.eclipse.jdt.ui.cleanup with parameters of type CompilationUnit Constructor Description CleanUpContext(ICompilationUnit unit, CompilationUnit ast)Creates a new clean up context. -
Uses of CompilationUnit in org.eclipse.jdt.ui.text.java
Methods in org.eclipse.jdt.ui.text.java that return CompilationUnit Modifier and Type Method Description CompilationUnitIInvocationContext. getASTRoot()Returns an AST of the compilation unit, possibly only a partial AST focused on the selection offset (seeASTParser.setFocalPosition(int)).Methods in org.eclipse.jdt.ui.text.java with parameters of type CompilationUnit Modifier and Type Method Description ASTNodeIProblemLocation. getCoveredNode(CompilationUnit astRoot)Convenience method to evaluate the AST node covered by this problem.ASTNodeIProblemLocation. getCoveringNode(CompilationUnit astRoot)Convenience method to evaluate the AST node covering this problem. -
Uses of CompilationUnit in org.eclipse.jdt.ui.text.java.correction
Methods in org.eclipse.jdt.ui.text.java.correction with parameters of type CompilationUnit Modifier and Type Method Description ImportRewriteASTRewriteCorrectionProposal. createImportRewrite(CompilationUnit astRoot)Creates and sets the import rewrite used for this compilation unit.
-