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()
IFileLineMatchgetDepotFile in interface IFileLineMatchpublic java.lang.String getLine()
IFileLineMatchgetLine in interface IFileLineMatchpublic int getRevision()
IFileLineMatchgetRevision in interface IFileLineMatchpublic int getLineNumber()
IFileLineMatchgetLineNumber in interface IFileLineMatchpublic IFileLineMatch.MatchType getType()
IFileLineMatchgetType in interface IFileLineMatch