Class BytecodeContext


  • public final class BytecodeContext
    extends Object
    Immutable configuration for a bytecode engine: execution mode, heap, resolution services, and execution limits.
    • Method Detail

      • getHeapManager

        public HeapManager getHeapManager()
        Returns:
        the heap manager
      • getClassResolver

        public ClassResolver getClassResolver()
        Returns:
        the class resolver
      • getNativeRegistry

        public NativeRegistry getNativeRegistry()
        Returns:
        the native registry
      • getInvocationHandler

        public InvocationHandler getInvocationHandler()
        Returns:
        the custom invocation handler overriding the default per-mode handler, or null to use the default; only consulted in ExecutionMode.RECURSIVE, where it lets a caller intercept every call (e.g. to stub the environment for differential execution)
      • getMaxCallDepth

        public int getMaxCallDepth()
        Returns:
        the max call depth
      • getMaxInstructions

        public int getMaxInstructions()
        Returns:
        the max instructions
      • isTrackStatistics

        public boolean isTrackStatistics()
        Returns:
        whether track statistics