public static class MatchedFile.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
MatchedFile |
build()
Creates the
MatchedFile instance. |
MatchedFile.Builder |
matchedBy(BannedImportGroup group)
Sets the group that contained the banned import that caused a match for this
file.
|
MatchedFile.Builder |
withMatchAt(int importLine,
String matchedString,
PackagePattern matchedBy)
Records a matched import within this file.
|
public MatchedFile.Builder withMatchAt(int importLine, String matchedString, PackagePattern matchedBy)
importLine - The physical line number (1 based) at which the match
occurred.matchedString - The string that was matched.matchedBy - The PackagePattern that caused this match.public MatchedFile.Builder matchedBy(BannedImportGroup group)
group - The group.public MatchedFile build()
MatchedFile instance.Copyright © 2014–2019. All rights reserved.