org.jboss.solder.exception.filter
Interface StackFrame


public interface StackFrame

Controller for stack trace filtering.

Author:
Jason Porter, Dan Allen

Method Summary
 void clearMark(String tag)
          Removes the given marker.
 int getIndex()
          Retrieves the index of this frame in the stack trace.
 StackFrame getMarkedFrame(String tag)
          Obtains the stack element that was marked with the given tag.
 StackTraceElement getStackTraceElement()
           
 boolean isMarkSet(String tag)
          Checks if the given marker key has been set.
 void mark(String tag)
          Sets a mark on a particular stack element.
 void setStackTraceElement(StackTraceElement element)
          Change the StackTraceElement for this frame.
 

Method Detail

getStackTraceElement

StackTraceElement getStackTraceElement()
Returns:
StackTraceElement represented by this.

mark

void mark(String tag)
Sets a mark on a particular stack element. Typically used to "fold" stack elements.

Parameters:
tag - unique marker key.

getMarkedFrame

StackFrame getMarkedFrame(String tag)
Obtains the stack element that was marked with the given tag.

Parameters:
tag - marker key to find
Returns:
stack element that was first marked with the tag

isMarkSet

boolean isMarkSet(String tag)
Checks if the given marker key has been set.

Parameters:
tag - marker key
Returns:
true if the marker for the given key has been set

clearMark

void clearMark(String tag)
Removes the given marker.

Parameters:
tag - marker key

setStackTraceElement

void setStackTraceElement(StackTraceElement element)
Change the StackTraceElement for this frame.

Parameters:
element - new element

getIndex

int getIndex()
Retrieves the index of this frame in the stack trace.

Returns:
index of this frame


Copyright © 2011 Seam Framework. All Rights Reserved.