Klasse GroovyParser
java.lang.Object
hudson.model.AbstractDescribableImpl<GroovyParser>
io.jenkins.plugins.analysis.warnings.groovy.GroovyParser
- Alle implementierten Schnittstellen:
Describable<GroovyParser>
,Serializable
Defines the properties of a warnings parser that uses a Groovy script to parse the warnings log.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungedu.hm.hafner.analysis.IssueParser
Returns a new parser instance.boolean
Returns the example to verify the parser.getId()
getName()
Returns the name.Returns the regular expression.Returns the Groovy script.int
hashCode()
final boolean
Returns whether the parser can scan messages spanning multiple lines.boolean
isValid()
Validates this instance.Von Klasse geerbte Methoden hudson.model.AbstractDescribableImpl
getDescriptor
-
Konstruktordetails
-
GroovyParser
@DataBoundConstructor public GroovyParser(String id, String name, String regexp, String script, String example) Creates a new instance ofGroovyParser
.- Parameter:
id
- the ID of the parsername
- the name of the parserregexp
- the regular expressionscript
- the script to map the expression to a warningexample
- the example to verify the parser
-
-
Methodendetails
-
isValid
public boolean isValid()Validates this instance.- Gibt zurück:
true
if this instance is valid,false
otherwise
-
getId
-
getName
Returns the name.- Gibt zurück:
- the name
-
getRegexp
Returns the regular expression.- Gibt zurück:
- the regular expression
-
getScript
Returns the Groovy script.- Gibt zurück:
- the Groovy script
-
getExample
Returns the example to verify the parser.- Gibt zurück:
- the example
-
hasMultiLineSupport
public final boolean hasMultiLineSupport()Returns whether the parser can scan messages spanning multiple lines.- Gibt zurück:
true
if the parser can scan messages spanning multiple lines
-
equals
-
hashCode
public int hashCode() -
createParser
public edu.hm.hafner.analysis.IssueParser createParser()Returns a new parser instance.- Gibt zurück:
- a new parser instance
- Löst aus:
IllegalArgumentException
- if this parser configuration is not valid
-