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
ConstructorsModifierConstructorDescriptionprotectedAbstractModelASTCodeBlock(Object sourceLocation, String name) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ModelASTValueprotected booleantoGroovy()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, validateMethods 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:ModelASTElementTranslates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.- Specified by:
toGroovyin interfaceModelASTMarkerInterface- Overrides:
toGroovyin classModelASTStep- Returns:
- A simple
Stringof Groovy code for this element and its children.
-
codeBlockAsString
-
getSingleValue
-
isLiteralSingleArg
protected boolean isLiteralSingleArg() -
equals
Description copied from class:ModelASTElement- Overrides:
equalsin classModelASTStep
-
toString
Description copied from class:ModelASTElement- Overrides:
toStringin classModelASTStep
-