Class Agent
- java.lang.Object
-
- org.jenkinsci.plugins.pipeline.modeldefinition.model.MappedClosure<Object,Agent>
-
- org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
@ToString @EqualsAndHashCode public class Agent extends MappedClosure<Object,Agent> implements Serializable, groovy.lang.GroovyObject
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
getDeclarativeAgent(Object context)
Deprecated.org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent
getDeclarativeAgent(Root root, Object context)
groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
groovy.lang.Closure
getRawClosure()
boolean
hasAgent()
Object
invokeMethod(String method, Object arguments)
void
populateMap(Map<String,Object> m)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.model.MappedClosure
getMap, getResultMap, getSerialVersionUID, put, remove, setResultMap
-
-
-
-
Constructor Detail
-
Agent
@Deprecated public Agent(Map<String,Object> m)
Deprecated.
-
Agent
public Agent(groovy.lang.Closure rawClosure)
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classMappedClosure<Object,Agent>
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classMappedClosure<Object,Agent>
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classMappedClosure<Object,Agent>
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classMappedClosure<Object,Agent>
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classMappedClosure<Object,Agent>
-
getRawClosure
public final groovy.lang.Closure getRawClosure()
-
getDeclarativeAgent
@Deprecated public org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent getDeclarativeAgent(Object context)
Deprecated.
-
getDeclarativeAgent
public org.jenkinsci.plugins.pipeline.modeldefinition.agent.DeclarativeAgent getDeclarativeAgent(@CheckForNull Root root, Object context)
-
hasAgent
public boolean hasAgent()
-
-