| Modifier and Type | Method and Description |
|---|---|
State |
computeBreaks(CommentsHelper commentsHelper,
int maxWidth,
State state,
Obs.ExplorationNode observer)
Make breaking decisions for a
Doc. |
protected java.lang.String |
computeFlat()
Compute the
Doc's flat value. |
protected com.google.common.collect.Range<java.lang.Integer> |
computeRange()
Compute the
Doc's Range of Input.Tokens. |
protected float |
computeWidth()
Compute the
Doc's width. |
java.util.OptionalInt |
getColumnLimitBeforeLastBreak()
An optional, more restrictive column limit for inner breaks that are marked as
Break.hasColumnLimit(). |
java.util.Optional<java.lang.String> |
getDebugName() |
OpenOp |
getOpenOp() |
Indent |
getPlusIndent() |
PartialInlineability |
partialInlineability() |
java.lang.String |
representation(State state)
An indented representation of this level and all nested levels inside it.
|
java.lang.String |
toString() |
void |
write(State state,
Output output)
Write a
Doc to an Output, after breaking decisions have been made. |
idprotected float computeWidth()
DocDoc's width.computeWidth in class DocFloat.POSITIVE_INFINITY if it must be brokenprotected java.lang.String computeFlat()
DocDoc's flat value. Not defined (and never called) if contains forced breaks.computeFlat in class Docprotected com.google.common.collect.Range<java.lang.Integer> computeRange()
DocDoc's Range of Input.Tokens.computeRange in class DocRangepublic State computeBreaks(CommentsHelper commentsHelper, int maxWidth, State state, Obs.ExplorationNode observer)
DocDoc.computeBreaks in class DocmaxWidth - the maximum line widthstate - the current output statepublic void write(State state, Output output)
DocDoc to an Output, after breaking decisions have been made.public Indent getPlusIndent()
public PartialInlineability partialInlineability()
public java.util.Optional<java.lang.String> getDebugName()
public OpenOp getOpenOp()
public java.util.OptionalInt getColumnLimitBeforeLastBreak()
Break.hasColumnLimit(). If
the level is to be considered one-lineable, the last such break must not start at a column higher than this.public java.lang.String representation(State state)
public java.lang.String toString()
toString in class java.lang.Object