Uses of Class
org.eclipse.jdt.core.dom.rewrite.ImportRewrite.ImportRewriteContext
Package
Description
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
-
Uses of ImportRewrite.ImportRewriteContext in org.eclipse.jdt.core.dom.rewrite
Modifier and TypeMethodDescriptionImportRewrite.getDefaultImportRewriteContext()
Returns the default rewrite context that only knows about the imported types.Modifier and TypeMethodDescriptionImportRewrite.addAnnotation
(IAnnotationBinding annotation, AST ast, ImportRewrite.ImportRewriteContext context) Adds the necessary imports for the given annotation binding to the rewriter's record and returns anAnnotation
that can be used in the code.ImportRewrite.addImport
(String qualifiedTypeName, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns a type reference that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns aType
that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, AST ast, ImportRewrite.ImportRewriteContext context, ImportRewrite.TypeLocation location) Adds a new import to the rewriter's record and returns aType
that can be used in the code.ImportRewrite.addImport
(ITypeBinding binding, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns a type reference that can be used in the code.ImportRewrite.addImportFromSignature
(String typeSig, AST ast, ImportRewrite.ImportRewriteContext context) Adds a new import to the rewriter's record and returns aType
node that can be used in the code as a reference to the type.ImportRewrite.addStaticImport
(String declaringTypeName, String simpleName, boolean isField, ImportRewrite.ImportRewriteContext context) Adds a new static import to the rewriter's record and returns a name - single member name if import is successful, else qualified name.ImportRewrite.addStaticImport
(IBinding binding, ImportRewrite.ImportRewriteContext context) Adds a new static import to the rewriter's record and returns a name - single member name if import is successful, else qualified name.