public class Comment extends Object implements CodeSegment
This is particularly helpful when adding tips, warnings or any extra information to generated code that needs attention/review.
Modifier and Type | Method and Description |
---|---|
String |
buildCode(String indent) |
Collection<String> |
getImports() |
Map<String,? extends MethodCall> |
getMethodDefinitions() |
Collection<String> |
getStaticImports() |
public Comment(String body)
public String buildCode(String indent)
buildCode
in interface CodeSegment
public Collection<String> getStaticImports()
getStaticImports
in interface CodeSegment
public Collection<String> getImports()
getImports
in interface CodeSegment
public Map<String,? extends MethodCall> getMethodDefinitions()
getMethodDefinitions
in interface CodeSegment
Copyright © 2023. All rights reserved.