org.mortbay.log

Class Frame

public class Frame extends Object

Access the current execution frame. This version of the Frame class uses the JDK 1.4 mechanisms to access the stack frame
Constructor Summary
Frame()
Construct a frame.
Frame(int ignoreFrames)
Construct a frame.
Method Summary
intgetDepth()
StringgetFile()
StringgetMethod()
FramegetParent()
Get a Frame representing the function one level up in this frame.
StringgetStack()
StackTraceElementgetStackTraceElement()
StringgetThread()
StringgetWhere()
StringtoString()

Constructor Detail

Frame

public Frame()
Construct a frame.

Frame

public Frame(int ignoreFrames)
Construct a frame.

Parameters: ignoreFrames number of levels of stack to ignore

Method Detail

getDepth

public int getDepth()

getFile

public String getFile()

getMethod

public String getMethod()

getParent

public Frame getParent()
Get a Frame representing the function one level up in this frame.

Returns: parent frame or null if none

getStack

public String getStack()

getStackTraceElement

public StackTraceElement getStackTraceElement()

getThread

public String getThread()

getWhere

public String getWhere()

toString

public String toString()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.