public class FoundIndication extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
FILE_ENCODING
The platform file encoding.
|
Constructor and Description |
---|
FoundIndication(Run build,
String originalPattern,
String matchingFile,
String matchingString)
Standard constructor.
|
FoundIndication(String pattern,
String matchingFile,
String matchingString)
JSON Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convertFromLineNumber(List<String> log)
|
Run |
getBuild()
Getter for the build.
|
String |
getFirstMatchingLine()
Getter for the first matching line (useful with multi-line build log indications.
|
String |
getMatchingFile()
Getter for the matching file.
|
int |
getMatchingHash()
The hash-code of the
matchingString . |
int |
getMatchingLine()
Deprecated.
since 1.3.2, 1.4.0 replaced with
getMatchingString() . |
String |
getMatchingString()
Getter for the matching String.
|
String |
getPattern()
Getter for the pattern.
|
Object |
readResolve()
Called after deserialization.
|
protected static final String FILE_ENCODING
public FoundIndication(Run build, String originalPattern, String matchingFile, String matchingString)
build
- the build of this indication.originalPattern
- the original pattern we used to match.matchingFile
- the path to the file in which we found the match.matchingString
- the String that makes up the match.public String getMatchingFile()
public String getPattern()
public Run getBuild()
public String getMatchingString()
public String getFirstMatchingLine()
getMatchingString()
.public void convertFromLineNumber(List<String> log)
matchingLine
with matchingString
from the text in the list at
matchingLine
s position. But only if matchingLine
is non null.log
- the build-log.public Object readResolve()
OldDataConverter
from matchingLine
to matchingString
if matchingLine
is non null.@Deprecated public int getMatchingLine()
getMatchingString()
.public int getMatchingHash()
matchingString
.
Convenience method mostly for jelly.Copyright © 2016–2019. All rights reserved.