Class ReturnHandler.ReturnHandlerStack

java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.ReturnHandler.ReturnHandlerStack
Enclosing interface:
ReturnHandler<T>

public static class ReturnHandler.ReturnHandlerStack extends ParserInstance.Data
  • Constructor Details

    • ReturnHandlerStack

      public ReturnHandlerStack(ParserInstance parserInstance)
  • Method Details

    • getStack

      public Deque<ReturnHandler<?>> getStack()
    • getCurrentHandler

      @Nullable public @Nullable ReturnHandler<?> getCurrentHandler()
      Retrieves the current ReturnHandler
      Returns:
      the return data
    • push

      public void push(ReturnHandler<?> handler)
      Pushes the current return handler onto the return stack.
      Note: After the trigger finished loading, pop() MUST be called
      Parameters:
      handler - the return handler
      See Also:
    • pop

      public ReturnHandler<?> pop()
      Pops the current handler off the return stack. Should be called after the trigger has finished loading.
      Returns:
      the popped return data
      See Also: