Class CaseEnv

java.lang.Object
com.cloudbees.groovy.cps.impl.ProxyEnv
com.cloudbees.groovy.cps.impl.CaseEnv
All Implemented Interfaces:
DepthTrackingEnv, Env, Serializable

public class CaseEnv extends ProxyEnv
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

  • Method Details

    • getBreakAddress

      public Continuation getBreakAddress(String label)
      Description copied from interface: Env
      If we see a break statement, where should we go?
      Specified by:
      getBreakAddress in interface Env
      Overrides:
      getBreakAddress in class ProxyEnv
      Parameters:
      label - Specifies the loop to break from. null for nearest loop.
      Returns:
      For semantically correct Groovy code, the return value is never null, because not having the matching label is a compile-time error.