Package io.jawk.backend
Class SandboxedAVM
java.lang.Object
io.jawk.backend.AVM
io.jawk.backend.SandboxedAVM
- All Implemented Interfaces:
VariableManager,Closeable,AutoCloseable
AVM variant enforcing sandbox restrictions at runtime.-
Field Summary
Fields inherited from class io.jawk.backend.AVM
NULL_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionSandboxedAVM(AwkSettings parameters, Map<String, JawkExtension> extensionInstances) Creates a sandboxed AVM with the provided settings and extension instances.SandboxedAVM(AwkSettings parameters, Map<String, JawkExtension> extensionInstances, boolean profilingEnabled) Creates a sandboxed AVM with the provided settings, extension instances, and profiling mode. -
Method Summary
Methods inherited from class io.jawk.backend.AVM
assignVariable, clearPersistentGlobals, close, eval, eval, eval, execute, execute, execute, executePersistingGlobals, executePersistingGlobals, executePersistingGlobals, getARGC, getARGV, getAwkSink, getCONVFMT, getFS, getJrt, getOFS, getORS, getProfilingReport, getRS, getSUBSEP, incFNR, incNR, prepareForEval, prepareForEval, resetFNR, resetProfiling, restorePersistentMemory, setAwkSink, setErrorStream, setFILENAME, setNF, snapshotPersistentMemory
-
Constructor Details
-
SandboxedAVM
Creates a sandboxed AVM with the provided settings and extension instances.- Parameters:
parameters- Runtime settings to honorextensionInstances- Available extension implementations
-
SandboxedAVM
public SandboxedAVM(AwkSettings parameters, Map<String, JawkExtension> extensionInstances, boolean profilingEnabled) Creates a sandboxed AVM with the provided settings, extension instances, and profiling mode.- Parameters:
parameters- Runtime settings to honorextensionInstances- Available extension implementationsprofilingEnabled- Whether to collect profiling statistics
-