Package VASSAL.tools
Class RecursionLimiter
java.lang.Object
VASSAL.tools.RecursionLimiter
Utility class to detect and report Infinite Loops within
Vassal components
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static int
protected static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
Report an Infinite Loopstatic boolean
static void
-
Field Details
-
RECURSION_LIMIT
protected static final int RECURSION_LIMIT- See Also:
-
recursionDepth
protected static int recursionDepth -
reporting
protected static boolean reporting
-
-
Constructor Details
-
RecursionLimiter
public RecursionLimiter()
-
-
Method Details
-
startExecution
- Throws:
RecursionLimitException
-
endExecution
public static void endExecution() -
infiniteLoop
Report an Infinite Loop- Parameters:
e
- exception
-
isReportingInfiniteLoop
public static boolean isReportingInfiniteLoop()
-