Class SourceUnitErrorCollector

java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.validator.ErrorCollector
org.jenkinsci.plugins.pipeline.modeldefinition.validator.SourceUnitErrorCollector
All Implemented Interfaces:
groovy.lang.GroovyObject

public class SourceUnitErrorCollector extends ErrorCollector
  • Constructor Details

    • SourceUnitErrorCollector

      public SourceUnitErrorCollector(org.codehaus.groovy.control.SourceUnit u)
  • Method Details

    • getMetaClass

      public groovy.lang.MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      getMetaClass in class ErrorCollector
    • setMetaClass

      public void setMetaClass(groovy.lang.MetaClass mc)
      Specified by:
      setMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      setMetaClass in class ErrorCollector
    • invokeMethod

      public Object invokeMethod(String method, Object arguments)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
      Overrides:
      invokeMethod in class ErrorCollector
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
      Overrides:
      getProperty in class ErrorCollector
    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class ErrorCollector
    • getSourceUnit

      public final org.codehaus.groovy.control.SourceUnit getSourceUnit()
    • asJson

      public net.sf.json.JSONArray asJson()
      Specified by:
      asJson in class ErrorCollector
    • error

      public void error(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement src, String message)
      Specified by:
      error in class ErrorCollector
    • getErrorCount

      public int getErrorCount()
      Specified by:
      getErrorCount in class ErrorCollector
    • errorsAsStrings

      public List<String> errorsAsStrings()
      Specified by:
      errorsAsStrings in class ErrorCollector