public static class MatchedFile.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
MatchedFile |
build() |
Creates the
MatchedFile instance. |
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 build()
MatchedFile instance.Copyright © 2014–2018. All rights reserved.