org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite
Class ImportRewriteAnalyzer
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.ImportRewriteAnalyzer
public final class ImportRewriteAnalyzer
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImportRewriteAnalyzer
public ImportRewriteAnalyzer(ICompilationUnit cu,
CompilationUnit root,
java.lang.String[] importOrder,
int threshold,
int staticThreshold,
boolean restoreExistingImports)
setFilterImplicitImports
public void setFilterImplicitImports(boolean filterImplicitImports)
- Sets that implicit imports (types in default package, CU- package and
'java.lang') should not be created. Note that this is a heuristic filter and can
lead to missing imports, e.g. in cases where a type is forced to be specified
due to a name conflict.
By default, the filter is enabled.
- Parameters:
filterImplicitImports - The filterImplicitImports to set
setFindAmbiguousImports
public void setFindAmbiguousImports(boolean findAmbiguousImports)
- When set searches for imports that can not be folded into on-demand
imports but must be specified explicitly
- Parameters:
findAmbiguousImports - The new value
addImport
public void addImport(java.lang.String fullTypeName,
boolean isStatic)
removeImport
public boolean removeImport(java.lang.String qualifiedName,
boolean isStatic)
getResultingEdits
public MultiTextEdit getResultingEdits(IProgressMonitor monitor)
throws JavaModelException
- Throws:
JavaModelException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getCreatedImports
public java.lang.String[] getCreatedImports()
getCreatedStaticImports
public java.lang.String[] getCreatedStaticImports()