Package randoop.output
Class SourceBuilder
- java.lang.Object
-
- randoop.output.SourceBuilder
-
abstract class SourceBuilder extends Object
Common behavior for source builder classes.
-
-
Constructor Summary
Constructors Constructor Description SourceBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) String
createLine(String... toks)
Creates a line from the given tokens with the current indentation and separated by spaces.(package private) abstract List<String>
toLines()
Return the source for this declaration as lines ofStrings
String
toString()
Return this declaration as aString
.
-
-
-
Method Detail
-
createLine
String createLine(String... toks)
Creates a line from the given tokens with the current indentation and separated by spaces.- Parameters:
toks
- the tokens to include on the line- Returns:
- the
String
constructed from the tokens
-
toLines
abstract List<String> toLines()
Return the source for this declaration as lines ofStrings
- Returns:
- the list of lines in this declaration
-
-