Class JSONErrorCollector
- java.lang.Object
-
- org.jenkinsci.plugins.pipeline.modeldefinition.validator.ErrorCollector
-
- org.jenkinsci.plugins.pipeline.modeldefinition.validator.JSONErrorCollector
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class JSONErrorCollector extends ErrorCollector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JSONErrorCollector.JSONErrorPair
-
Constructor Summary
Constructors Constructor Description JSONErrorCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.json.JSONArray
asJson()
void
error(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement src, String message)
List<String>
errorsAsStrings()
int
getErrorCount()
List<JSONErrorCollector.JSONErrorPair>
getErrors()
groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
void
setErrors(List<JSONErrorCollector.JSONErrorPair> value)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classErrorCollector
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classErrorCollector
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classErrorCollector
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classErrorCollector
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classErrorCollector
-
getErrors
public List<JSONErrorCollector.JSONErrorPair> getErrors()
-
setErrors
public void setErrors(List<JSONErrorCollector.JSONErrorPair> value)
-
error
public void error(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement src, String message)
- Specified by:
error
in classErrorCollector
-
getErrorCount
public int getErrorCount()
- Specified by:
getErrorCount
in classErrorCollector
-
errorsAsStrings
public List<String> errorsAsStrings()
- Specified by:
errorsAsStrings
in classErrorCollector
-
asJson
public net.sf.json.JSONArray asJson()
- Specified by:
asJson
in classErrorCollector
-
-