public interface PRStackFrame
PRStackFrame
interface serves primarily to provide a
logical stack-trace capability. Additionally, each instance
encapsulates the context information for one processing step during execution:
String
descriptor for this processing stepParameterPage
Any PRStackFrame
instance becomes inactive at the end of
the processing step it represents, and can no longer be used for processing.
But even an inactive instance can be used to trace the sequence of stack
frames that led to its creation.
Modifier and Type | Interface and Description |
---|---|
static class |
PRStackFrame.Type
Represents the type of stack frame.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Deprecated.
Calling getLabel is expensive causing the label to be constructed from its parts.
The label is now meant to be used for tracing and log information. Code should use the Type to determine
the kind of stack label. (Feel free to add new Types). In addition, rather than getting the label and parsing
its substrings, use getLabelVariable() to get the sub-string which are being used to construct the label.
|
java.lang.String |
getLabelVariable(int aIndex) |
PRStackFrame |
getNext()
Identifies the stack frame, if any, that is executing immediately
within this one.
|
StringMap |
getParameterPage()
Identifies the
ParameterPage of this stack frame. |
PRStackFrame |
getPrevious()
Identifies the stack frame from which the current instance was created.
|
ClipboardPage |
getPrimaryPage()
Identifies the Primary Page of this stack frame.
|
PRStackFrame |
getRootOfStack()
Locates the root (first) frame of the stack that includes this
instance.
|
ProcessingStatus |
getStatus()
Identifies the Step Status of this stack frame.
|
ClipboardPage |
getStepPage()
Identifies the Step Page of this stack frame.
|
PRStackFrame |
getTopOfStack()
Locates the frame at the top of the stack that includes (or included)
this instance.
|
PRStackFrame.Type |
getType()
Identifies the type of this stack frame.
|
boolean |
isActive()
Indicates whether this instance is active, that is, whether it
is still part of an execution stack.
|
boolean |
isRoot()
Indicates whether this instance is the root (first) frame of an
execution stack.
|
boolean |
isTop()
Indicates whether this instance is currently the top frame of an
execution stack.
|
void |
setParameterPage(StringMap aNewPage)
Identifies the new
ParameterPage of this stack frame. |
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
PRStackFrame getRootOfStack()
PRStackFrame getTopOfStack()
PRStackFrame getPrevious()
null
if this is the
root framePRStackFrame getNext()
null
if this frame is
at the top of the stack (or is inactive)PRStackFrame.Type getType()
java.lang.String getLabel()
java.lang.String getLabelVariable(int aIndex)
StringMap getParameterPage()
ParameterPage
of this stack frame.ParameterPage
or StringMap
specified when this instance was created (or updated)ClipboardPage getPrimaryPage()
ClipboardPage getStepPage()
ProcessingStatus getStatus()
boolean isActive()
true
if this instance is active;
false
otherwiseboolean isRoot()
true
if this is a root instance;
false
otherwiseboolean isTop()
true
if this instance is at the top of a stack;
false
otherwisevoid setParameterPage(StringMap aNewPage)
ParameterPage
of this stack frame. May be
any class that implements StringMap, including ParameterPage or ClipboardPage.aNewPage
- Copyright © 2015 Pegasystems Inc. All Rights Reserved.