Class IndentImpl

java.lang.Object
com.intellij.formatting.Indent
com.intellij.formatting.IndentImpl
Direct Known Subclasses:
ExpandableIndent

public class IndentImpl extends Indent
  • Constructor Details

    • IndentImpl

      public IndentImpl(Indent.Type type, boolean absolute, boolean relativeToDirectParent)
    • IndentImpl

      public IndentImpl(Indent.Type type, boolean absolute, int spaces, boolean relativeToDirectParent, boolean enforceIndentToChildren)
  • Method Details

    • getType

      public Indent.Type getType()
      Specified by:
      getType in class Indent
    • getSpaces

      public int getSpaces()
    • isAbsolute

      public boolean isAbsolute()
      Returns:
      'isAbsolute' property value as defined during IndentImpl object 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 check Indent class-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 check Indent javadoc for the more detailed explanation of this property usage.

      Returns:
      true if current indent object is configured to enforce indent for sub-blocks of composite block that doesn't start new line; false otherwise
    • toString

      @NonNls public @NonNls String toString()
      Overrides:
      toString in class Object