public abstract class AbstractModelASTCodeBlock extends ModelASTStep
ModelASTScriptBlock
,
ModelASTWhenExpression
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelASTCodeBlock(Object sourceLocation,
String name) |
Modifier and Type | Method and Description |
---|---|
protected String |
codeBlockAsString() |
boolean |
equals(Object o) |
protected ModelASTValue |
getSingleValue() |
protected boolean |
isLiteralSingleArg() |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
String |
toString() |
blockedStepsBase, getArgs, getBlockedSteps, getName, hashCode, removeSourceLocation, setArgs, setName, toJSON, validate
getSourceLocation, setSourceLocation
public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTStep
String
of Groovy code for this element and its children.protected String codeBlockAsString()
protected ModelASTValue getSingleValue()
protected boolean isLiteralSingleArg()
public boolean equals(Object o)
ModelASTElement
equals
in class ModelASTStep
public String toString()
ModelASTElement
toString
in class ModelASTStep
Copyright © 2016–2017. All rights reserved.