public static final class PrettyPrintWriter.Span extends Object
Constructor and Description |
---|
Span(String span) |
Span(String span,
String color) |
Modifier and Type | Method and Description |
---|---|
void |
append(PrettyPrintWriter.Span other) |
boolean |
canAppend(PrettyPrintWriter.Span other) |
int |
countCharacter(char ch) |
int |
indexOf(char ch,
int start) |
boolean |
isEmpty() |
int |
length() |
void |
spaceOut(int width,
int start) |
String |
toString() |
void |
toString(StringBuilder builder) |
void |
trimTo(int width,
PrettyPrintWriter.Span appendToLongLine) |
public int length()
public boolean isEmpty()
public int indexOf(char ch, int start)
public void spaceOut(int width, int start)
public int countCharacter(char ch)
public void trimTo(int width, PrettyPrintWriter.Span appendToLongLine)
public void toString(StringBuilder builder)
public void append(PrettyPrintWriter.Span other)
public boolean canAppend(PrettyPrintWriter.Span other)
Copyright © 2015. All rights reserved.