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:
  • Constructor Details

  • Method Details

    • getMetaClass

      public groovy.lang.MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      getMetaClass in class MappedClosure<Object,Agent>
    • setMetaClass

      public void setMetaClass(groovy.lang.MetaClass mc)
      Specified by:
      setMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      setMetaClass in class MappedClosure<Object,Agent>
    • invokeMethod

      public Object invokeMethod(String method, Object arguments)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
      Overrides:
      invokeMethod in class MappedClosure<Object,Agent>
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
      Overrides:
      getProperty in class MappedClosure<Object,Agent>
    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class MappedClosure<Object,Agent>
    • getRawClosure

      public final groovy.lang.Closure getRawClosure()
    • populateMap

      public void populateMap(Map<String,Object> m)
    • 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()