java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.JSONParser
All Implemented Interfaces:
groovy.lang.GroovyObject, Parser

public class JSONParser extends Object implements Parser, groovy.lang.GroovyObject
  • Constructor Summary

    Constructors
    Constructor
    Description
    JSONParser(com.github.fge.jsonschema.core.tree.JsonTree tree)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.github.fge.jsonschema.core.tree.JsonTree
     
    groovy.lang.MetaClass
     
    getProperty(String property)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
     
    invokeMethod(String method, Object arguments)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
    parse(com.github.fge.jsonschema.core.tree.JsonTree json)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent
    parseAgent(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTArgumentList
    parseArgumentList(com.github.fge.jsonschema.core.tree.JsonTree o)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer
    parseAxes(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis
    parseAxis(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch
    parseBranch(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition
    parseBuildCondition(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    <R extends org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer>
    R
    parseBuildConditionResponder(com.github.fge.jsonschema.core.tree.JsonTree j, R responder)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters
    parseBuildParameters(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTClosureMap
    parseClosureMap(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment
    parseEnvironment(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude
    parseExclude(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis
    parseExcludeAxis(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes
    parseExcludes(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput
    parseInput(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTInternalFunctionCall
    parseInternalFunctionCall(com.github.fge.jsonschema.core.tree.JsonTree o)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTKey
    parseKey(com.github.fge.jsonschema.core.tree.JsonTree o)
     
    parseKeyValueOrMethodCallPair(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries
    parseLibraries(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix
    parseMatrix(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall
    parseMethodCall(com.github.fge.jsonschema.core.tree.JsonTree o)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions
    parseOptions(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel
    parseParallel(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild
    parsePostBuild(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage
    parsePostStage(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTScriptBlock
    parseScriptBlock(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage
    parseStage(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase
    parseStageBase(com.github.fge.jsonschema.core.tree.JsonTree j, org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase stage)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages
    parseStages(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
    parseStep(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools
    parseTools(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTreeStep
    parseTreeStep(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers
    parseTriggers(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue
    parseValue(com.github.fge.jsonschema.core.tree.JsonTree o)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen
    parseWhen(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenContent
    parseWhenContent(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenExpression
    parseWhenExpression(com.github.fge.jsonschema.core.tree.JsonTree j)
     
    void
     
    void
    setJsonTree(com.github.fge.jsonschema.core.tree.JsonTree value)
     
    void
    setMetaClass(groovy.lang.MetaClass mc)
     
    void
    setProperty(String property, Object value)
     
    void
    setValidator(org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSONParser

      public JSONParser(com.github.fge.jsonschema.core.tree.JsonTree tree)
  • Method Details

    • getMetaClass

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

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

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

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

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

      public ErrorCollector getErrorCollector()
    • setErrorCollector

      public void setErrorCollector(ErrorCollector value)
    • getValidator

      public org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator getValidator()
    • setValidator

      public void setValidator(org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator value)
    • getJsonTree

      public com.github.fge.jsonschema.core.tree.JsonTree getJsonTree()
    • setJsonTree

      public void setJsonTree(com.github.fge.jsonschema.core.tree.JsonTree value)
    • parse

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse()
      Specified by:
      parse in interface Parser
    • parse

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse(com.github.fge.jsonschema.core.tree.JsonTree json)
    • parseStages

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages parseStages(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseParallel

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel parseParallel(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseMatrix

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix parseMatrix(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseAxes

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer parseAxes(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseAxis

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis parseAxis(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseExcludes

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes parseExcludes(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseExclude

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude parseExclude(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseExcludeAxis

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis parseExcludeAxis(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseStage

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage parseStage(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseStageBase

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase parseStageBase(com.github.fge.jsonschema.core.tree.JsonTree j, org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase stage)
    • parseInput

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput parseInput(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseBranch

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch parseBranch(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseWhen

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen parseWhen(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseLibraries

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries parseLibraries(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseOptions

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions parseOptions(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseTriggers

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers parseTriggers(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseBuildParameters

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters parseBuildParameters(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseKeyValueOrMethodCallPair

      @CheckForNull public Object parseKeyValueOrMethodCallPair(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseMethodCall

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall parseMethodCall(com.github.fge.jsonschema.core.tree.JsonTree o)
    • parseInternalFunctionCall

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTInternalFunctionCall parseInternalFunctionCall(com.github.fge.jsonschema.core.tree.JsonTree o)
    • parseStep

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep parseStep(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseWhenContent

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenContent parseWhenContent(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseArgumentList

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTArgumentList parseArgumentList(com.github.fge.jsonschema.core.tree.JsonTree o)
    • parseKey

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTKey parseKey(com.github.fge.jsonschema.core.tree.JsonTree o)
    • parseValue

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue parseValue(com.github.fge.jsonschema.core.tree.JsonTree o)
    • parseScriptBlock

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTScriptBlock parseScriptBlock(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseWhenExpression

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenExpression parseWhenExpression(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseTreeStep

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTreeStep parseTreeStep(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseBuildCondition

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition parseBuildCondition(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parsePostBuild

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild parsePostBuild(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parsePostStage

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage parsePostStage(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseBuildConditionResponder

      @NonNull public <R extends org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer> R parseBuildConditionResponder(com.github.fge.jsonschema.core.tree.JsonTree j, R responder)
    • parseEnvironment

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment parseEnvironment(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseTools

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools parseTools(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseClosureMap

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTClosureMap parseClosureMap(com.github.fge.jsonschema.core.tree.JsonTree j)
    • parseAgent

      @CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent parseAgent(com.github.fge.jsonschema.core.tree.JsonTree j)