Class CallStack

java.lang.Object
org.rapidcontext.core.proc.CallStack

@Deprecated(forRemoval=true) public class CallStack extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The CallContext class now encapsulates a call stack.
A procedure call stack. The stack contains an ordered list of the procedures currently being called.
  • Constructor Details

    • CallStack

      protected CallStack(CallContext cx)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new procedure call stack.
      Parameters:
      cx - the call context
  • Method Details

    • contains

      @Deprecated(forRemoval=true) public boolean contains(Procedure proc)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if the specified procedure exists in the call stack.
      Parameters:
      proc - the procedure definition
      Returns:
      true if the procedure exists in the call stack, or false otherwise
    • height

      @Deprecated(forRemoval=true) public int height()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Context.depthOf(java.lang.Class<T>)(CallContext.class) instead.
      Returns the current height of the call stack.
      Returns:
      the current height of the call stack
    • caller

      @Deprecated(forRemoval=true) public Procedure caller()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the procedure calling the currently executing procedure.
      Returns:
      the caller procedure, or null if top-level
    • toStackTrace

      @Deprecated(forRemoval=true) public List<String> toStackTrace(int maxSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a printable stack trace for debugging purposes.
      Parameters:
      maxSize - the maximum stack trace length
      Returns:
      an array with all the procedures on the stack