Package org.openrewrite.kotlin.style
Class ImportLayoutStyle.Block.AllAliases
java.lang.Object
org.openrewrite.kotlin.style.ImportLayoutStyle.Block.ImportPackage
org.openrewrite.kotlin.style.ImportLayoutStyle.Block.AllAliases
- All Implemented Interfaces:
ImportLayoutStyle.Block
- Enclosing interface:
ImportLayoutStyle.Block
public static class ImportLayoutStyle.Block.AllAliases
extends ImportLayoutStyle.Block.ImportPackage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openrewrite.kotlin.style.ImportLayoutStyle.Block
ImportLayoutStyle.Block.AllAliases, ImportLayoutStyle.Block.AllOthers, ImportLayoutStyle.Block.BlankLines, ImportLayoutStyle.Block.ImportPackage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(org.openrewrite.java.tree.JRightPadded<org.openrewrite.java.tree.J.Import> anImport) This method will determine if the passed in import is a match for the rules defined on the block.voidsetPackageImports(Collection<ImportLayoutStyle.Block.ImportPackage> packageImports) toString()Methods inherited from class org.openrewrite.kotlin.style.ImportLayoutStyle.Block.ImportPackage
getPackageWildcard, orderedImports
-
Constructor Details
-
AllAliases
public AllAliases()
-
-
Method Details
-
setPackageImports
-
accept
public boolean accept(org.openrewrite.java.tree.JRightPadded<org.openrewrite.java.tree.J.Import> anImport) Description copied from interface:ImportLayoutStyle.BlockThis 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:
acceptin interfaceImportLayoutStyle.Block- Overrides:
acceptin classImportLayoutStyle.Block.ImportPackage- Parameters:
anImport- The import to be compared against the block's matching rules.- Returns:
trueif the import was a match
-
toString
- Overrides:
toStringin classImportLayoutStyle.Block.ImportPackage
-