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 |
---|---|---|
|
ImportCustomizer |
addImport(String alias, String className) |
|
ImportCustomizer |
addImports(String... imports) |
|
ImportCustomizer |
addStarImports(String... packageNames) |
|
ImportCustomizer |
addStaticImport(String className, String fieldName) |
|
ImportCustomizer |
addStaticImport(String alias, String className, String fieldName) |
|
ImportCustomizer |
addStaticStars(String... classNames) |
|
void |
call(SourceUnit source, GeneratorContext context, ClassNode classNode) |
Methods inherited from class | Name |
---|---|
class CompilationCustomizer |
getPhase |
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.