Class MatchedImport
- java.lang.Object
-
- de.skuzzle.enforcer.restrictimports.analyze.MatchedImport
-
public final class MatchedImport extends Object
Represents a single match of a banned import within a java source file.- Author:
- Simon Taddiken
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetImportLine()The physical line within the source file in which the import has been matched.PackagePatterngetMatchedBy()StringgetMatchedString()inthashCode()StringtoString()
-
-
-
Method Detail
-
getImportLine
public int getImportLine()
The physical line within the source file in which the import has been matched. Number is always 1-based!- Returns:
- The line number of the matched imports.
-
getMatchedString
public String getMatchedString()
-
getMatchedBy
public PackagePattern getMatchedBy()
-
-