All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.groovy.cps.DepthTrackingEnv Maven / Gradle / Ivy

There is a newer version: 1.31
Show newest version
package com.cloudbees.groovy.cps;

/**
 * @author Sam Van Oort
 */
public interface DepthTrackingEnv extends Env {

    /** Limit 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. */
    int MAX_LEGAL_DEPTH = 1024;

    /** Return how deep this environment is within nested closure/function calls. */
    public int getDepth();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy