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
-
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(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.boolean
isStatic()
void
setPackageImports
(Collection<ImportLayoutStyle.Block.ImportPackage> packageImports) toString()
Methods inherited from class org.openrewrite.java.style.ImportLayoutStyle.Block.ImportPackage
getPackageWildcard, orderedImports
-
Constructor Details
-
AllOthers
public AllOthers(boolean statik)
-
-
Method Details
-
setPackageImports
-
isStatic
public boolean isStatic()- Overrides:
isStatic
in classImportLayoutStyle.Block.ImportPackage
-
accept
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 interfaceImportLayoutStyle.Block
- Overrides:
accept
in classImportLayoutStyle.Block.ImportPackage
- Parameters:
anImport
- The import to be compared against the block's matching rules.- Returns:
true
if the import was a match
-
toString
- Overrides:
toString
in classImportLayoutStyle.Block.ImportPackage
-