Class GroovyScript

All Implemented Interfaces:
Describable<Tool>, Serializable

public class GroovyScript extends ReportScanningTool
Selects a GroovyParser using the specified ID.
Author:
Ullrich Hafner
See Also:
  • Constructor Details

    • GroovyScript

      @DataBoundConstructor public GroovyScript(String parserId)
      Creates a new instance of GroovyScript.
      Parameters:
      parserId - ID of the Groovy parser
  • Method Details

    • getParserId

      public String getParserId()
    • getParser

      @CheckForNull public GroovyParser getParser()
    • setParser

      @DataBoundSetter public void setParser(GroovyParser parser)
      Sets a parser that is defined as part of the current job configuration.
      Parameters:
      parser - local parser definition
    • createParser

      public edu.hm.hafner.analysis.IssueParser createParser()
      Description copied from class: ReportScanningTool
      Returns a new parser to scan a log file and return the issues reported in such a file.
      Specified by:
      createParser in class ReportScanningTool
      Returns:
      the parser to use
    • getLabelProvider

      public StaticAnalysisLabelProvider getLabelProvider()
      Description copied from class: Tool
      Returns the associated label provider for this tool.
      Overrides:
      getLabelProvider in class Tool
      Returns:
      the label provider
    • getActualId

      public String getActualId()
      Description copied from class: Tool
      Returns the actual ID of the tool. If no user defined ID is given, then the default ID is returned.
      Overrides:
      getActualId in class Tool
      Returns:
      the ID
      See Also:
    • getActualName

      public String getActualName()
      Description copied from class: Tool
      Returns the actual name of the tool. If no user defined name is given, then the default name is returned.
      Overrides:
      getActualName in class Tool
      Returns:
      the name
      See Also:
    • canScanConsoleLog

      protected boolean canScanConsoleLog()
      Description copied from class: ReportScanningTool
      Returns whether this tool instance may scan the console log when no file pattern is configured.
      Overrides:
      canScanConsoleLog in class ReportScanningTool
      Returns:
      true if console log scanning is allowed, false otherwise