Package org.rapidcontext.core.proc
Class CallStack
java.lang.Object
org.rapidcontext.core.proc.CallStack
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 Summary
ConstructorsModifierConstructorDescriptionprotectedCallStack(CallContext cx) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new procedure call stack. -
Method Summary
Modifier and TypeMethodDescriptioncaller()Deprecated, for removal: This API element is subject to removal in a future version.UseCallContext.caller()instead.booleanDeprecated, for removal: This API element is subject to removal in a future version.UseCallContext.isCalledBy(Procedure)instead.intheight()Deprecated, for removal: This API element is subject to removal in a future version.UseContext.depthOf(java.lang.Class<T>)(CallContext.class) instead.toStackTrace(int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.UseCallContext.stackTrace()instead.
-
Constructor Details
-
CallStack
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, for removal: This API element is subject to removal in a future version.UseCallContext.isCalledBy(Procedure)instead.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, for removal: This API element is subject to removal in a future version.UseContext.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, for removal: This API element is subject to removal in a future version.UseCallContext.caller()instead.Returns the procedure calling the currently executing procedure.- Returns:
- the caller procedure, or null if top-level
-
toStackTrace
Deprecated, for removal: This API element is subject to removal in a future version.UseCallContext.stackTrace()instead.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
-