@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
SuspendedExceptionpublic void suspend(List<VMFuture<Object>> futures) throws SuspendedException
SuspendedExceptionpublic Object call() throws ExecutionException, InterruptedException, SuspendedException
call in interface Callable<Object>call in interface VMExecutor.Suspendable<Object>ExecutionExceptionInterruptedExceptionSuspendedExceptionpublic List<VMFuture<Object>> getSuspendedAt()
getSuspendedAt in interface VMExecutor.Suspendable<Object>public Object popSyncStackVal() throws SuspendedException, ExecutionException
SuspendedExceptionExecutionExceptionpublic void syncStackVal()
throws SuspendedException,
ExecutionException
SuspendedExceptionExecutionExceptionpublic void syncStackVals()
throws SuspendedException,
ExecutionException
SuspendedExceptionExecutionExceptionpublic 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
SuspendedExceptionExecutionExceptionpublic Object[] tuple()
public void popSyncStackVals(Object[] vals) throws SuspendedException, ExecutionException
SuspendedExceptionExecutionExceptionpublic void popSyncStackVals(Object[] vals, int l) throws ExecutionException, SuspendedException
ExecutionExceptionSuspendedExceptionpublic Object popFirstAvail(int nr) throws SuspendedException
SuspendedExceptionpublic 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
ExecutionExceptionSuspendedExceptionpublic ExecutionContext getSyncSubProgramContext(Program program, int nrParams) throws ExecutionException, SuspendedException
ExecutionExceptionSuspendedExceptionpublic 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.