java.lang.Object
com.intellij.formatting.Indent
com.intellij.formatting.IndentImpl
- Direct Known Subclasses:
ExpandableIndent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.intellij.formatting.Indent
Indent.Type -
Constructor Summary
ConstructorsConstructorDescriptionIndentImpl(Indent.Type type, boolean absolute, boolean relativeToDirectParent) IndentImpl(Indent.Type type, boolean absolute, int spaces, boolean relativeToDirectParent, boolean enforceIndentToChildren) -
Method Summary
Modifier and TypeMethodDescriptionintgetType()booleanbooleanAllows to answer if current indent object is configured to enforce indent for sub-blocks of composite block that doesn't start new line.booleanAllows to answer if current indent object is configured to anchor direct parent that lays on a different line.@NonNls StringtoString()Methods inherited from class com.intellij.formatting.Indent
getAbsoluteLabelIndent, getAbsoluteNoneIndent, getContinuationIndent, getContinuationIndent, getContinuationWithoutFirstIndent, getContinuationWithoutFirstIndent, getIndent, getIndent, getLabelIndent, getNoneIndent, getNormalIndent, getNormalIndent, getSmartIndent, getSpaceIndent, getSpaceIndent
-
Constructor Details
-
IndentImpl
-
IndentImpl
public IndentImpl(Indent.Type type, boolean absolute, int spaces, boolean relativeToDirectParent, boolean enforceIndentToChildren)
-
-
Method Details
-
getType
-
getSpaces
public int getSpaces() -
isAbsolute
public boolean isAbsolute()- Returns:
'isAbsolute'property value as defined duringIndentImplobject construction
-
isRelativeToDirectParent
public boolean isRelativeToDirectParent()Allows to answer if current indent object is configured to anchor direct parent that lays on a different line. Feel free to checkIndentclass-level javadoc in order to get more information and examples about expected usage of this property.- Returns:
- flag that indicates if this indent should anchor direct parent that lays on a different line
-
isEnforceIndentToChildren
public boolean isEnforceIndentToChildren()Allows to answer if current indent object is configured to enforce indent for sub-blocks of composite block that doesn't start new line. Feel free to checkIndentjavadoc for the more detailed explanation of this property usage.- Returns:
trueif current indent object is configured to enforce indent for sub-blocks of composite block that doesn't start new line;falseotherwise
-
toString
-