public static class Token.WrapPolicy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Token.WrapPolicy |
DISABLE_WRAP
Policy used for internal structure of multiline comments to mark tokens that should never be wrapped
|
int |
extraIndent |
boolean |
indentOnColumn |
boolean |
isFirstInGroup |
boolean |
isForced
If true, it means the token was in new line even before wrapping, but should be treaded as wrapped token for
indentation purposes.
|
float |
penaltyMultiplier |
int |
structureDepth |
static Token.WrapPolicy |
SUBSTITUTE_ONLY
Policy used for internal structure of multiline comments to mark tokens that can be wrapped only in lines
that have no other tokens to wrap.
|
int |
topPriorityGroupEnd |
int |
wrapParentIndex |
| Constructor and Description |
|---|
WrapPolicy(int extraIndent,
int wrapParentIndex,
boolean isForced) |
WrapPolicy(int extraIndent,
int wrapParentIndex,
int structureDepth,
float penaltyMultiplier,
boolean isFirstInGroup,
boolean indentOnColumn,
int topPriorityGroupEnd,
boolean isForced) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTopPriority() |
public static final Token.WrapPolicy DISABLE_WRAP
public static final Token.WrapPolicy SUBSTITUTE_ONLY
public final int extraIndent
public final int wrapParentIndex
public final int structureDepth
public final float penaltyMultiplier
public final boolean isFirstInGroup
public final boolean indentOnColumn
public final int topPriorityGroupEnd
public final boolean isForced
public WrapPolicy(int extraIndent,
int wrapParentIndex,
int structureDepth,
float penaltyMultiplier,
boolean isFirstInGroup,
boolean indentOnColumn,
int topPriorityGroupEnd,
boolean isForced)
public WrapPolicy(int extraIndent,
int wrapParentIndex,
boolean isForced)