Klasse GroovyParser

java.lang.Object
hudson.model.AbstractDescribableImpl<GroovyParser>
io.jenkins.plugins.analysis.warnings.groovy.GroovyParser
Alle implementierten Schnittstellen:
Describable<GroovyParser>, Serializable

public class GroovyParser extends AbstractDescribableImpl<GroovyParser> implements Serializable
Defines the properties of a warnings parser that uses a Groovy script to parse the warnings log.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • GroovyParser

      @DataBoundConstructor public GroovyParser(String id, String name, String regexp, String script, String example)
      Creates a new instance of GroovyParser.
      Parameter:
      id - the ID of the parser
      name - the name of the parser
      regexp - the regular expression
      script - the script to map the expression to a warning
      example - 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

      public String getId()
    • getName

      public String getName()
      Returns the name.
      Gibt zurück:
      the name
    • getRegexp

      public String getRegexp()
      Returns the regular expression.
      Gibt zurück:
      the regular expression
    • getScript

      public String getScript()
      Returns the Groovy script.
      Gibt zurück:
      the Groovy script
    • getExample

      public String 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

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • 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