@ParametersAreNonnullByDefault public final class ExecutionContext extends Object implements VMExecutor.Suspendable<Object>
public static final Object VOID
public ProcessIO getIo()
public Object[] getMem()
public void globalPoke(int addr, Object value)
public void localPoke(int addr, Object value)
public Object localPeek(int addr)
public Object globalPeek(int addr)
public Program getProgram()
public void incrementInstructionPointer()
public void terminate()
public Object executeSyncOrAsync() throws ExecutionException, InterruptedException
public Object executeAsync() throws ExecutionException, InterruptedException
public void suspend(VMFuture<Object> future) throws SuspendedException
SuspendedException
public void suspend(List<VMFuture<Object>> futures) throws SuspendedException
SuspendedException
public Object call() throws ExecutionException, InterruptedException, SuspendedException
call
in interface Callable<Object>
call
in interface VMExecutor.Suspendable<Object>
ExecutionException
InterruptedException
SuspendedException
public List<VMFuture<Object>> getSuspendedAt()
getSuspendedAt
in interface VMExecutor.Suspendable<Object>
public Object popSyncStackVal() throws SuspendedException, ExecutionException
SuspendedException
ExecutionException
public void syncStackVal() throws SuspendedException, ExecutionException
SuspendedException
ExecutionException
public void syncStackVals() throws SuspendedException, ExecutionException
SuspendedException
ExecutionException
public Object[] popStackVals(int nvals)
public void popStackVals(Object[] to, int nvals)
public Object popStackVal()
public int getNrStackVals()
public Object[] popSyncStackVals(int nvals) throws SuspendedException, ExecutionException
SuspendedException
ExecutionException
public Object[] tuple()
public void popSyncStackVals(Object[] vals) throws SuspendedException, ExecutionException
SuspendedException
ExecutionException
public void popSyncStackVals(Object[] vals, int l) throws ExecutionException, SuspendedException
ExecutionException
SuspendedException
public Object popFirstAvail(int nr) throws SuspendedException
SuspendedException
public Object pop()
public void pushAll(Object[] objects)
public boolean isStackEmpty()
public Object peek()
public Object peekFromTop(int n)
public Object getFromPtr(int ptr)
public ExecutionContext getSubProgramContext(Program program, int nrParams) throws ExecutionException, SuspendedException
ExecutionException
SuspendedException
public ExecutionContext getSyncSubProgramContext(Program program, int nrParams) throws ExecutionException, SuspendedException
ExecutionException
SuspendedException
public ExecutionContext getSyncSubProgramContext(Program program, Object[] parameters)
public boolean isChildContext()
@Nonnull public MathContext getMathContext()
public void setMathContext(@Nonnull MathContext mathContext)
mathContext
- the mathContext to set@Nullable public VMExecutor getExecService()
public ResultCache getResultCache()
Copyright © 2018 SPF4J. All rights reserved.