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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.json.JSONArrayasJson()voidintgroovy.lang.MetaClassgetProperty(String property) invokeMethod(String method, Object arguments) voidvoidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value)
-
Constructor Details
-
JSONErrorCollector
public JSONErrorCollector()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classErrorCollector
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classErrorCollector
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classErrorCollector
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classErrorCollector
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classErrorCollector
-
getErrors
-
setErrors
-
error
public void error(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement src, String message) - Specified by:
errorin classErrorCollector
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin classErrorCollector
-
errorsAsStrings
- Specified by:
errorsAsStringsin classErrorCollector
-
asJson
public net.sf.json.JSONArray asJson()- Specified by:
asJsonin classErrorCollector
-