checkNoJvmExit
Throws a ScriptException if any of fragments contains a recognized literal JVM-termination call.
All fragments are scanned together, so a termination call split across, for example, an expression and a separate action/statement block is still detected.
Parameters
fragments
the code fragments to scan (joined before matching)
Throws
if a literal System.exit, exitProcess, or Runtime.getRuntime().exit/halt call is found. This is a best-effort check, not a security boundary; see the class documentation.