Package org.openrewrite.java.style
Class ImportLayoutStyle.Block.AllOthers
- java.lang.Object
-
- org.openrewrite.java.style.ImportLayoutStyle.Block.ImportPackage
-
- org.openrewrite.java.style.ImportLayoutStyle.Block.AllOthers
-
- All Implemented Interfaces:
ImportLayoutStyle.Block
- Enclosing interface:
- ImportLayoutStyle.Block
public static class ImportLayoutStyle.Block.AllOthers extends ImportLayoutStyle.Block.ImportPackage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openrewrite.java.style.ImportLayoutStyle.Block
ImportLayoutStyle.Block.AllOthers, ImportLayoutStyle.Block.BlankLines, ImportLayoutStyle.Block.ImportPackage
-
-
Constructor Summary
Constructors Constructor Description AllOthers(boolean statik)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(JRightPadded<J.Import> anImport)This method will determine if the passed in import is a match for the rules defined on the block.booleanisStatic()voidsetPackageImports(java.util.Collection<ImportLayoutStyle.Block.ImportPackage> packageImports)java.lang.StringtoString()-
Methods inherited from class org.openrewrite.java.style.ImportLayoutStyle.Block.ImportPackage
getPackageWildcard, orderedImports
-
-
-
-
Method Detail
-
setPackageImports
public void setPackageImports(java.util.Collection<ImportLayoutStyle.Block.ImportPackage> packageImports)
-
isStatic
public boolean isStatic()
- Overrides:
isStaticin classImportLayoutStyle.Block.ImportPackage
-
accept
public boolean accept(JRightPadded<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
public java.lang.String toString()
- Overrides:
toStringin classImportLayoutStyle.Block.ImportPackage
-
-