public class FileLineMatch extends java.lang.Object implements IFileLineMatch
IFileLineMatch
interfaceIFileLineMatch.MatchType
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
file |
protected java.lang.String |
line |
protected int |
lineNumber |
protected int |
revision |
protected IFileLineMatch.MatchType |
type |
Constructor and Description |
---|
FileLineMatch(java.util.Map<java.lang.String,java.lang.Object> map) |
FileLineMatch(java.lang.String file,
int revision,
java.lang.String line,
IFileLineMatch.MatchType type)
Explicit-value constructor; sets all fields to null or -1, type to MatchType.MATCH.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDepotFile()
Get depot file path of match
|
java.lang.String |
getLine()
Get line text of match
|
int |
getLineNumber()
Get line number of match
|
int |
getRevision()
Get revision number of match
|
IFileLineMatch.MatchType |
getType()
Get match type
|
protected java.lang.String file
protected int revision
protected int lineNumber
protected java.lang.String line
protected IFileLineMatch.MatchType type
public FileLineMatch(java.lang.String file, int revision, java.lang.String line, IFileLineMatch.MatchType type)
file
- filerevision
- revisionline
- linetype
- typepublic FileLineMatch(java.util.Map<java.lang.String,java.lang.Object> map)
map
- mappublic java.lang.String getDepotFile()
IFileLineMatch
getDepotFile
in interface IFileLineMatch
public java.lang.String getLine()
IFileLineMatch
getLine
in interface IFileLineMatch
public int getRevision()
IFileLineMatch
getRevision
in interface IFileLineMatch
public int getLineNumber()
IFileLineMatch
getLineNumber
in interface IFileLineMatch
public IFileLineMatch.MatchType getType()
IFileLineMatch
getType
in interface IFileLineMatch