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 CodeSegmentpublic Collection<String> getStaticImports()
getStaticImports in interface CodeSegmentpublic Collection<String> getImports()
getImports in interface CodeSegmentpublic Map<String,? extends MethodCall> getMethodDefinitions()
getMethodDefinitions in interface CodeSegmentCopyright © 2024. All rights reserved.