Class AbstractModelASTCodeBlock
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
org.jenkinsci.plugins.pipeline.modeldefinition.ast.AbstractModelASTCodeBlock
- All Implemented Interfaces:
ModelASTMarkerInterface
- Direct Known Subclasses:
ModelASTScriptBlock
,ModelASTWhenExpression
Represents the special step which are executed without validation against the declarative subset.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractModelASTCodeBlock
(Object sourceLocation, String name) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected ModelASTValue
protected boolean
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.toString()
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
blockedStepsBase, getArgs, getBlockedSteps, getName, hashCode, removeSourceLocation, setArgs, setName, toJSON, validate
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement
getSourceLocation, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validate
-
Constructor Details
-
AbstractModelASTCodeBlock
-
-
Method Details
-
toGroovy
Description copied from class:ModelASTElement
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.- Specified by:
toGroovy
in interfaceModelASTMarkerInterface
- Overrides:
toGroovy
in classModelASTStep
- Returns:
- A simple
String
of Groovy code for this element and its children.
-
codeBlockAsString
-
getSingleValue
-
isLiteralSingleArg
protected boolean isLiteralSingleArg() -
equals
Description copied from class:ModelASTElement
- Overrides:
equals
in classModelASTStep
-
toString
Description copied from class:ModelASTElement
- Overrides:
toString
in classModelASTStep
-