Class CollapseImportsTransform
- java.lang.Object
-
- com.strobel.decompiler.languages.java.ast.transforms.CollapseImportsTransform
-
- All Implemented Interfaces:
IAstTransform
public class CollapseImportsTransform extends java.lang.Object implements IAstTransform
-
-
Field Summary
Fields Modifier and Type Field Description private DecompilerSettings_settings
-
Constructor Summary
Constructors Constructor Description CollapseImportsTransform(DecompilerContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanisPublic(TypeReference type)private voidremoveRedundantImports(CompilationUnit compilationUnit)voidrun(AstNode root)
-
-
-
Field Detail
-
_settings
private final DecompilerSettings _settings
-
-
Constructor Detail
-
CollapseImportsTransform
public CollapseImportsTransform(DecompilerContext context)
-
-
Method Detail
-
run
public void run(AstNode root)
- Specified by:
runin interfaceIAstTransform
-
isPublic
private static boolean isPublic(@NotNull TypeReference type)
-
removeRedundantImports
private void removeRedundantImports(CompilationUnit compilationUnit)
-
-