|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.warnings.GroovyParser
public class GroovyParser
Defines the properties of a warnings parser that uses a Groovy script to parse the warnings log.
| Constructor Summary | |
|---|---|
GroovyParser(java.lang.String name,
java.lang.String regexp,
java.lang.String script)
Creates a new instance of GroovyParser. |
|
| Method Summary | |
|---|---|
static hudson.util.FormValidation |
doCheckName(java.lang.String name)
Performs on-the-fly validation on the name of the parser that needs to be unique. |
static hudson.util.FormValidation |
doCheckRegexp(java.lang.String regexp)
Performs on-the-fly validation on the regular expression. |
static hudson.util.FormValidation |
doCheckScript(java.lang.String script)
Performs on-the-fly validation on the Groovy script. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getRegexp()
Returns the regular expression. |
java.lang.String |
getScript()
Returns the Groovy script. |
boolean |
hasMultiLineSupport()
Returns whether the parser can scan messages spanning multiple lines. |
boolean |
isValid()
Validates this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor
public GroovyParser(java.lang.String name,
java.lang.String regexp,
java.lang.String script)
GroovyParser.
name - the name of the parserregexp - the regular expressionscript - the script to map the expression to a warning| Method Detail |
|---|
public boolean isValid()
true if this instance is valid, false
otherwisepublic java.lang.String getName()
public java.lang.String getRegexp()
public java.lang.String getScript()
public boolean hasMultiLineSupport()
true if the parser can scan messages spanning
multiple linespublic static hudson.util.FormValidation doCheckName(java.lang.String name)
name - the name of the parser
public static hudson.util.FormValidation doCheckRegexp(java.lang.String regexp)
regexp - the regular expression
public static hudson.util.FormValidation doCheckScript(java.lang.String script)
script - the script
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||