public interface ProcessStack
| Modifier and Type | Method and Description |
|---|---|
@Nullable Result<?> |
callCustomFrame(Object instance,
Frame frame,
org.panda_lang.utilities.commons.function.ThrowingSupplier<Result<?>,Exception> resultSupplier)
Call frame within the given instance and return custom result
|
@Nullable Result<?> |
callFrame(Object instance,
Frame frame)
Call frame within the given instance
|
@Nullable Result<?> |
callScope(Object instance,
Scope scope)
Call scope within the given instance
|
@Nullable Result<?> |
callStatement(Object instance,
Statement statement)
Call statement within the given instance
|
Frame |
getCurrentFrame() |
Statement[] |
getLivingFramesOnStack()
Get statements on stack
|
Process |
getProcess()
Get associated process
|
@Nullable @Nullable Result<?> callFrame(Object instance, Frame frame) throws Exception
instance - the instance under which the frame has to be performedframe - the frame to callException - if something happen@Nullable @Nullable Result<?> callCustomFrame(Object instance, Frame frame, org.panda_lang.utilities.commons.function.ThrowingSupplier<Result<?>,Exception> resultSupplier) throws Exception
instance - the instance within the frame has to be performedframe - the frame to callresultSupplier - the supplier of resultException - if something happen@Nullable @Nullable Result<?> callStatement(Object instance, Statement statement) throws Exception
instance - the instance within the statementstatement - the statement to callException - if something happen@Nullable @Nullable Result<?> callScope(Object instance, Scope scope) throws Exception
instance - the instance within the frame has to performedscope - the scope to callException - if something happenStatement[] getLivingFramesOnStack()
Frame getCurrentFrame()
Process getProcess()
Copyright © 2020. All rights reserved.