Package com.cloudbees.groovy.cps.impl
Class CaseEnv
java.lang.Object
com.cloudbees.groovy.cps.impl.ProxyEnv
com.cloudbees.groovy.cps.impl.CaseEnv
- All Implemented Interfaces:
DepthTrackingEnv,Env,Serializable
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from interface com.cloudbees.groovy.cps.DepthTrackingEnv
MAX_LEGAL_DEPTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBreakAddress(String label) If we see a break statement, where should we go?Methods inherited from class com.cloudbees.groovy.cps.impl.ProxyEnv
buildStackTraceElements, closureOwner, declareVariable, getContinueAddress, getDepth, getExceptionHandler, getInvoker, getLocalVariable, getLocalVariableType, getReturnAddress, setLocalVariable
-
Constructor Details
-
CaseEnv
-
-
Method Details
-
getBreakAddress
Description copied from interface:EnvIf we see a break statement, where should we go?- Specified by:
getBreakAddressin interfaceEnv- Overrides:
getBreakAddressin classProxyEnv- 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.
-