public class ImportCustomizer extends CompilationCustomizer
This compilation customizer allows addiing various types of imports to the compilation unit. Supports adding:
Constructor and description |
---|
ImportCustomizer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
public ImportCustomizer |
addImport(String alias, String className) |
|
public ImportCustomizer |
addImports(String classNames) |
|
public ImportCustomizer |
addStarImports(String packageNames) |
|
public ImportCustomizer |
addStaticImport(String className, String fieldName) |
|
public ImportCustomizer |
addStaticImport(String alias, String className, String fieldName) |
|
public ImportCustomizer |
addStaticStars(String classNames) |
|
public void |
call(SourceUnit source, GeneratorContext context, ClassNode classNode) |
Methods inherited from class | Name |
---|---|
class CompilationCustomizer |
getPhase |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.