Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
ImportRewrite.ImportRewriteContext |
ImportRewrite.getDefaultImportRewriteContext()
Returns the default rewrite context that only knows about the imported types.
|
Modifier and Type | Method and Description |
---|---|
Annotation |
ImportRewrite.addAnnotation(IAnnotationBinding annotation,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds the necessary imports for the given annotation binding to the rewriter's record
and returns an
Annotation that can be used in the code. |
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
String |
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.
|
String |
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.
|
Type |
ImportRewrite.addImportFromSignature(String typeSig,
AST ast,
ImportRewrite.ImportRewriteContext context)
Adds a new import to the rewriter's record and returns a
Type node that can be used
in the code as a reference to the type. |
String |
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.
|
String |
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.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.