Class CustomImportOrderCheck.RuleMatchForImport
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck.RuleMatchForImport
-
- Enclosing class:
- CustomImportOrderCheck
private static final class CustomImportOrderCheck.RuleMatchForImport extends Object
Contains matching attributes assisting in definition of "best matching" group for import.
-
-
Field Summary
Fields Modifier and Type Field Description private String
group
Import group for current best match.private int
matchLength
Length of matching string for current best match.private int
matchPosition
Position of matching string for current best match.
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleMatchForImport(String group, int length, int position)
Constructor to initialize the fields.
-
-
-
Field Detail
-
matchPosition
private final int matchPosition
Position of matching string for current best match.
-
matchLength
private int matchLength
Length of matching string for current best match.
-
-
Constructor Detail
-
RuleMatchForImport
private RuleMatchForImport(String group, int length, int position)
Constructor to initialize the fields.- Parameters:
group
- Matched group.length
- Matching length.position
- Matching position.
-
-