public class CodeGenerationContext extends Object
Constructor and Description |
---|
CodeGenerationContext() |
Modifier and Type | Method and Description |
---|---|
String |
decIndentation()
Decrement code indentation.
|
Set<String> |
getImports() |
int |
getIndentationLevel()
Current indentation level.
|
String |
importClassName(Class clazz)
Adds a class to the list of classes used in the generated code.
|
String |
incIndentation()
Increment code indentation.
|
String |
newLine()
Produces a string with new line followed by a number of spaces determined according to the current indentation
level.
|
public String incIndentation()
public String decIndentation()
public String importClassName(Class clazz)
clazz
- class objectpublic String newLine()
public int getIndentationLevel()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.