Class ModelParser
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.ModelParser
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Parser
-
Constructor Summary
ConstructorDescriptionModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit) Deprecated.ModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) ModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) ModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators, org.jenkinsci.plugins.workflow.flow.FlowExecution execution, ErrorCollector errorCollector) ModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) Deprecated.ModelParser
(org.codehaus.groovy.control.SourceUnit sourceUnit, org.jenkinsci.plugins.workflow.flow.FlowExecution execution, ErrorCollector errorCollector, org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator validator, org.jenkinsci.plugins.pipeline.modeldefinition.DescriptorLookupCache lookupCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
astDebugLog
(groovy.lang.Closure<String> c) <X> X
castOrNull
(Class<X> type, Object value) void
checkForNestedPipelineStep
(org.codehaus.groovy.ast.stmt.Statement statement) static boolean
groovy.lang.MetaClass
getProperty
(String property) getSourceText
(org.codehaus.groovy.ast.ASTNode n) getSourceText
(org.codehaus.groovy.ast.expr.BinaryExpression e) invokeMethod
(String method, Object arguments) static boolean
matchParallel
(org.codehaus.groovy.ast.stmt.Statement st) matchStringLiteral
(org.codehaus.groovy.ast.expr.Expression exp) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
parse()
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
parse
(boolean secondaryRun) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
parse
(org.codehaus.groovy.ast.ModuleNode src) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef
parse
(org.codehaus.groovy.ast.ModuleNode src, boolean secondaryRun) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent
parseAgent
(org.codehaus.groovy.ast.stmt.Statement st) protected org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue
parseArgument
(org.codehaus.groovy.ast.expr.Expression e) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer
parseAxes
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis
parseAxis
(org.codehaus.groovy.ast.stmt.Statement stmt) parseBooleanMethod
(org.codehaus.groovy.ast.expr.MethodCallExpression mc) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch
parseBranch
(String name, org.codehaus.groovy.ast.stmt.BlockStatement body) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition
parseBuildCondition
(org.codehaus.groovy.ast.stmt.Statement st) <R extends org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer>
RparseBuildConditionResponder
(org.codehaus.groovy.ast.stmt.Statement stmt, R responder) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameter
parseBuildParameter
(org.codehaus.groovy.ast.stmt.Statement st) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters
parseBuildParameters
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTClosureMap
parseClosureMap
(org.codehaus.groovy.ast.expr.ClosureExpression expression) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment
parseEnvironment
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude
parseExclude
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis
parseExcludeAxis
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes
parseExcludes
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput
parseInput
(org.codehaus.groovy.ast.stmt.Statement statement) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironmentValue
parseInternalFunctionCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries
parseLibraries
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix
parseMatrix
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall
parseMethodCall
(org.codehaus.groovy.ast.expr.MethodCallExpression expr) protected String
parseMethodName
(org.codehaus.groovy.ast.expr.MethodCallExpression exp) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOption
parseOption
(org.codehaus.groovy.ast.stmt.Statement st) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions
parseOptions
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel
parseParallel
(org.codehaus.groovy.ast.stmt.Statement stmt) List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep>
parsePlainSteps
(org.codehaus.groovy.ast.ModuleNode src) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild
parsePostBuild
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage
parsePostStage
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTScriptBlock
parseScriptBlock
(org.codehaus.groovy.ast.stmt.Statement st) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage
parseStage
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages
parseStages
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
parseStep
(org.codehaus.groovy.ast.stmt.Statement st) protected String
parseStringLiteral
(org.codehaus.groovy.ast.expr.Expression exp) protected String
parseStringLiteralOrEmpty
(org.codehaus.groovy.ast.expr.Expression exp) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools
parseTools
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTrigger
parseTrigger
(org.codehaus.groovy.ast.stmt.Statement st) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers
parseTriggers
(org.codehaus.groovy.ast.stmt.Statement stmt) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen
parseWhen
(org.codehaus.groovy.ast.stmt.Statement statement) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenContent
parseWhenContent
(org.codehaus.groovy.ast.stmt.Statement st) org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenExpression
parseWhenExpression
(org.codehaus.groovy.ast.stmt.Statement st) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Constructor Details
-
ModelParser
Deprecated. -
ModelParser
@Deprecated public ModelParser(org.codehaus.groovy.control.SourceUnit sourceUnit, @CheckForNull org.jenkinsci.plugins.workflow.flow.FlowExecution execution) Deprecated. -
ModelParser
-
ModelParser
-
ModelParser
public ModelParser(org.codehaus.groovy.control.SourceUnit sourceUnit, @NonNull List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators, @CheckForNull org.jenkinsci.plugins.workflow.flow.FlowExecution execution, @CheckForNull ErrorCollector errorCollector) -
ModelParser
public ModelParser(org.codehaus.groovy.control.SourceUnit sourceUnit, @CheckForNull org.jenkinsci.plugins.workflow.flow.FlowExecution execution, @CheckForNull ErrorCollector errorCollector, @CheckForNull org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator validator, @CheckForNull org.jenkinsci.plugins.pipeline.modeldefinition.DescriptorLookupCache lookupCache)
-
-
Method Details
-
parse
@CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse() -
parse
@CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse(org.codehaus.groovy.ast.ModuleNode src) -
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getAST_DEBUG_LOGGING
public static boolean getAST_DEBUG_LOGGING() -
isAST_DEBUG_LOGGING
public static boolean isAST_DEBUG_LOGGING() -
parse
@CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse(boolean secondaryRun) -
parsePlainSteps
@CheckForNull public List<org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep> parsePlainSteps(org.codehaus.groovy.ast.ModuleNode src) -
checkForNestedPipelineStep
public void checkForNestedPipelineStep(org.codehaus.groovy.ast.stmt.Statement statement) -
parse
@CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef parse(org.codehaus.groovy.ast.ModuleNode src, boolean secondaryRun) -
parseStages
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages parseStages(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseParallel
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel parseParallel(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseMatrix
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix parseMatrix(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseAxes
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer parseAxes(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseAxis
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis parseAxis(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseExcludes
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes parseExcludes(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseExclude
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude parseExclude(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseExcludeAxis
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis parseExcludeAxis(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseEnvironment
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment parseEnvironment(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseLibraries
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries parseLibraries(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseTools
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools parseTools(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseStage
@CheckForNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage parseStage(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseInput
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput parseInput(org.codehaus.groovy.ast.stmt.Statement statement) -
parseWhen
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen parseWhen(org.codehaus.groovy.ast.stmt.Statement statement) -
parseBooleanMethod
-
parseBranch
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch parseBranch(String name, org.codehaus.groovy.ast.stmt.BlockStatement body) -
parseOptions
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions parseOptions(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseOption
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOption parseOption(org.codehaus.groovy.ast.stmt.Statement st) -
parseTriggers
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers parseTriggers(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseTrigger
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTrigger parseTrigger(org.codehaus.groovy.ast.stmt.Statement st) -
parseBuildParameters
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters parseBuildParameters(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseBuildParameter
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameter parseBuildParameter(org.codehaus.groovy.ast.stmt.Statement st) -
parseMethodCall
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall parseMethodCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) -
parseInternalFunctionCall
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironmentValue parseInternalFunctionCall(org.codehaus.groovy.ast.expr.MethodCallExpression expr) -
parseClosureMap
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTClosureMap parseClosureMap(org.codehaus.groovy.ast.expr.ClosureExpression expression) -
parseStep
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep parseStep(org.codehaus.groovy.ast.stmt.Statement st) -
parseWhenContent
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenContent parseWhenContent(org.codehaus.groovy.ast.stmt.Statement st) -
parseWhenExpression
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenExpression parseWhenExpression(org.codehaus.groovy.ast.stmt.Statement st) -
parseScriptBlock
public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTScriptBlock parseScriptBlock(org.codehaus.groovy.ast.stmt.Statement st) -
parseAgent
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent parseAgent(org.codehaus.groovy.ast.stmt.Statement st) -
parsePostBuild
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild parsePostBuild(org.codehaus.groovy.ast.stmt.Statement stmt) -
parsePostStage
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage parsePostStage(org.codehaus.groovy.ast.stmt.Statement stmt) -
parseBuildConditionResponder
@NonNull public <R extends org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer> R parseBuildConditionResponder(org.codehaus.groovy.ast.stmt.Statement stmt, R responder) -
parseBuildCondition
@NonNull public org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition parseBuildCondition(org.codehaus.groovy.ast.stmt.Statement st) -
parseArgument
protected org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue parseArgument(org.codehaus.groovy.ast.expr.Expression e) -
parseStringLiteralOrEmpty
-
parseStringLiteral
-
matchStringLiteral
-
castOrNull
-
getSourceText
-
getSourceText
-
parseMethodName
-
matchParallel
-
astDebugLog
-