Package com.cloudbees.groovy.cps
Interface DepthTrackingEnv
- All Superinterfaces:
Env,Serializable
- All Known Implementing Classes:
BlockScopeEnv,CaseEnv,FunctionCallEnv,ProxyEnv,TryBlockEnv
- Author:
- Sam Van Oort
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLimit on how deeply environments can recurse. -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Return how deep this environment is within nested closure/function calls.Methods inherited from interface com.cloudbees.groovy.cps.Env
buildStackTraceElements, closureOwner, declareVariable, getBreakAddress, getContinueAddress, getExceptionHandler, getInvoker, getLocalVariable, getLocalVariableType, getReturnAddress, setLocalVariable
-
Field Details
-
MAX_LEGAL_DEPTH
static final int MAX_LEGAL_DEPTHLimit on how deeply environments can recurse. Capped somewhat low to try to limit the ability to run a program that will generate a StackOverflowError when serialized.- See Also:
-
-
Method Details
-
getDepth
int getDepth()Return how deep this environment is within nested closure/function calls.
-