类 Level
java.lang.Object
com.palantir.javaformat.doc.HasUniqueId
com.palantir.javaformat.doc.Doc
com.palantir.javaformat.doc.Level
A
Level inside a Doc.-
方法概要
修饰符和类型方法说明computeBreaks(CommentsHelper commentsHelper, int maxWidth, State state, Obs.ExplorationNode observer) Make breaking decisions for aDoc.protected StringCompute theDoc's flat value.protected com.google.common.collect.Range<Integer> protected floatCompute theDoc's width.An optional, more restrictive column limit for inner breaks that are marked asBreak.hasColumnLimit().representation(State state) An indented representation of this level and all nested levels inside it.toString()voidWrite aDocto anOutput, after breaking decisions have been made.从类继承的方法 com.palantir.javaformat.doc.HasUniqueId
id
-
方法详细资料
-
computeWidth
protected float computeWidth()从类复制的说明:DocCompute theDoc's width.- 指定者:
computeWidth在类中Doc- 返回:
- the width, or
Float.POSITIVE_INFINITYif it must be broken
-
computeFlat
从类复制的说明:DocCompute theDoc's flat value. Not defined (and never called) if contains forced breaks.- 指定者:
computeFlat在类中Doc- 返回:
- the flat value
-
computeRange
从类复制的说明:Doc- 指定者:
computeRange在类中Doc- 返回:
- the
Range
-
computeBreaks
public State computeBreaks(CommentsHelper commentsHelper, int maxWidth, State state, Obs.ExplorationNode observer) 从类复制的说明:DocMake breaking decisions for aDoc.- 指定者:
computeBreaks在类中Doc- 参数:
maxWidth- the maximum line widthstate- the current output state- 返回:
- the new output state
-
write
从类复制的说明:DocWrite aDocto anOutput, after breaking decisions have been made. -
getPlusIndent
-
partialInlineability
-
getDebugName
-
getOpenOp
-
getColumnLimitBeforeLastBreak
An optional, more restrictive column limit for inner breaks that are marked asBreak.hasColumnLimit(). If the level is to be considered one-lineable, the last such break must not start at a column higher than this. -
representation
An indented representation of this level and all nested levels inside it. -
toString
-