org.openqa.jetty.log
Class Frame

java.lang.Object
  extended by org.openqa.jetty.log.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
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getStackTraceElement

public StackTraceElement getStackTraceElement()

getStack

public String getStack()

getMethod

public String getMethod()

getDepth

public int getDepth()

getThread

public String getThread()

getFile

public String getFile()

getWhere

public String getWhere()

toString

public String toString()
Overrides:
toString in class Object

getParent

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

Returns:
parent frame or null if none


Copyright © 2012. All Rights Reserved.