Class DSL
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- org.jenkinsci.plugins.workflow.cps.DSL
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
public class DSL extends groovy.lang.GroovyObjectSupport implements Serializable
CallsStep
s and other DSL objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
UNSAFE_GROOVY_INTERPOLATION
-
Constructor Summary
Constructors Constructor Description DSL(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Object
invokeDescribable(String symbol, Object _args)
WheninvokeMethod(String, Object)
is calling a genericDescriptor
Object
invokeMethod(String name, Object args)
Executes theStep
implementation specified by the name argument.protected Object
invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, Object args)
Deprecated.protected Object
invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, String name, Object args)
WheninvokeMethod(String, Object)
is calling aStepDescriptor
static boolean
isKeepStepArguments()
Tell us if we should storeStep
arguments in anArgumentsAction
or simply discard them (if set to false, explicitly)protected Object
readResolve()
-
-
-
Field Detail
-
UNSAFE_GROOVY_INTERPOLATION
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static String UNSAFE_GROOVY_INTERPOLATION
-
-
Method Detail
-
readResolve
protected Object readResolve() throws IOException
- Throws:
IOException
-
isKeepStepArguments
public static boolean isKeepStepArguments()
Tell us if we should storeStep
arguments in anArgumentsAction
or simply discard them (if set to false, explicitly)
-
invokeMethod
public Object invokeMethod(String name, Object args)
Executes theStep
implementation specified by the name argument.- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classgroovy.lang.GroovyObjectSupport
- Returns:
- If the step completes execution synchronously, the result will be returned. Otherwise this method suspends.
-
invokeStep
@Deprecated protected Object invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, Object args)
Deprecated.WheninvokeMethod(String, Object)
is calling aStepDescriptor
-
invokeStep
protected Object invokeStep(org.jenkinsci.plugins.workflow.steps.StepDescriptor d, String name, Object args)
WheninvokeMethod(String, Object)
is calling aStepDescriptor
- Parameters:
d
- TheStepDescriptor
being invoked.name
- The name used to invoke the step. May beStepDescriptor.getFunctionName()
, a symbol as inStepDescriptor.metaStepsOf(java.lang.String)
, ord.clazz.getName()
.args
- The arguments passed to the step.
-
invokeDescribable
protected Object invokeDescribable(String symbol, Object _args)
WheninvokeMethod(String, Object)
is calling a genericDescriptor
-
-