public class SourcePrinter extends Object
Modifier and Type | Method and Description |
---|---|
Position |
getCursor() |
String |
getSource() |
SourcePrinter |
indent() |
String |
normalizeEolInTextBlock(String content) |
Position |
peekMethodChainPosition() |
Position |
popMethodChainPosition() |
SourcePrinter |
print(String arg) |
SourcePrinter |
println() |
SourcePrinter |
println(String arg) |
void |
pushMethodChainPosition(Position position) |
void |
resetMethodChainPosition(Position position) |
String |
toString() |
SourcePrinter |
unindent() |
void |
wrapToColumn(int column)
Performs a new line and indent, then prints enough space characters until aligned to the specified column.
|
public SourcePrinter indent()
public SourcePrinter unindent()
public SourcePrinter print(String arg)
public SourcePrinter println(String arg)
public SourcePrinter println()
public Position getCursor()
public void resetMethodChainPosition(Position position)
public void pushMethodChainPosition(Position position)
public Position peekMethodChainPosition()
public Position popMethodChainPosition()
public void wrapToColumn(int column)
column
- the column to align topublic String getSource()
Copyright © 2007–2017. All rights reserved.