Class ImportLayoutStyle.Block.BlankLines

java.lang.Object
org.openrewrite.kotlin.style.ImportLayoutStyle.Block.BlankLines
All Implemented Interfaces:
ImportLayoutStyle.Block
Enclosing interface:
ImportLayoutStyle.Block

public static class ImportLayoutStyle.Block.BlankLines extends Object implements ImportLayoutStyle.Block
A specialized block implementation to act as a blank line separator between import groupings.
  • Constructor Details

    • BlankLines

      public BlankLines()
  • Method Details

    • accept

      public boolean accept(org.openrewrite.java.tree.JRightPadded<org.openrewrite.java.tree.J.Import> anImport)
      Description copied from interface: ImportLayoutStyle.Block
      This method will determine if the passed in import is a match for the rules defined on the block. If the import is matched, it will be internally stored in the block.
      Specified by:
      accept in interface ImportLayoutStyle.Block
      Parameters:
      anImport - The import to be compared against the block's matching rules.
      Returns:
      true if the import was a match
    • toString

      public String toString()
      Overrides:
      toString in class Object