Class Comment
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.Comment
-
- All Implemented Interfaces:
CodeSegment
public class Comment extends Object implements CodeSegment
Allows specifying a comment to be added to generated code.This is particularly helpful when adding tips, warnings or any extra information to generated code that needs attention/review.
- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildCode(String indent)Collection<String>getImports()Map<String,? extends MethodCall>getMethodDefinitions()Collection<String>getStaticImports()
-
-
-
Constructor Detail
-
Comment
public Comment(String body)
-
-
Method Detail
-
buildCode
public String buildCode(String indent)
- Specified by:
buildCodein interfaceCodeSegment
-
getStaticImports
public Collection<String> getStaticImports()
- Specified by:
getStaticImportsin interfaceCodeSegment
-
getImports
public Collection<String> getImports()
- Specified by:
getImportsin interfaceCodeSegment
-
getMethodDefinitions
public Map<String,? extends MethodCall> getMethodDefinitions()
- Specified by:
getMethodDefinitionsin interfaceCodeSegment
-
-