类 IndentImpl

java.lang.Object
com.intellij.formatting.Indent
com.intellij.formatting.IndentImpl
直接已知子类:
ExpandableIndent

public class IndentImpl extends Indent
  • 构造器详细资料

    • IndentImpl

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

      public IndentImpl(Indent.Type type, boolean absolute, int spaces, boolean relativeToDirectParent, boolean enforceIndentToChildren)
  • 方法详细资料

    • getType

      public Indent.Type getType()
      指定者:
      getType 在类中 Indent
    • getSpaces

      public int getSpaces()
    • isAbsolute

      public boolean isAbsolute()
      返回:
      '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.

      返回:
      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.

      返回:
      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()
      覆盖:
      toString 在类中 Object