org.mortbay.log

Class Frame


public class Frame
extends java.lang.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

int
getDepth()
String
getFile()
String
getMethod()
Frame
getParent()
Get a Frame representing the function one level up in this frame.
String
getStack()
StackTraceElement
getStackTraceElement()
String
getThread()
String
getWhere()
String
toString()

Constructor Details

Frame

public Frame()
Construct a frame.

Frame

public Frame(int ignoreFrames)
Construct a frame.
Parameters:
ignoreFrames - number of levels of stack to ignore

Method Details

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.