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 |
---|---|
static ImportRewrite.TypeLocation |
ImportRewrite.TypeLocation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImportRewrite.TypeLocation[] |
ImportRewrite.TypeLocation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Type |
ImportRewrite.addImport(ITypeBinding binding,
AST ast,
ImportRewrite.ImportRewriteContext context,
ImportRewrite.TypeLocation location)
Adds a new import to the rewriter's record and returns a
Type that can be used
in the code. |
IAnnotationBinding[] |
ImportRewrite.ImportRewriteContext.removeRedundantTypeAnnotations(IAnnotationBinding[] annotations,
ImportRewrite.TypeLocation location,
ITypeBinding type)
This method can be overridden in subclasses to remove annotations that are redundant, e.g. because of NonNullByDefault.
|
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.