Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.util
Class Frame  view Frame download Frame.java

java.lang.Object
  extended byorg.mortbay.util.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


Field Summary
private static java.lang.String __className
           
private static java.lang.String __lineSeparator
           
private  int _depth
          The stack depth where the Frame was created (main is 1)
private  java.lang.String _file
          The file and linenumber of where the Frame was created.
private  java.lang.String _method
          The Method (including the "(file.java:99)") the Frame was created in
private  java.lang.StackTraceElement[] _stack
           
private  java.lang.String _string
          The full stack of where the Frame was created.
private  java.lang.String _thread
          Name of the Thread the Frame was created in
private  int _top
           
private  java.lang.String _where
           
 
Constructor Summary
  Frame()
          Construct a frame.
  Frame(int ignoreFrames)
          Construct a frame.
(package private) Frame(int ignoreFrames, boolean partial)
          package private Constructor.
private Frame(java.lang.StackTraceElement[] stack, int top)
           
 
Method Summary
(package private)  void complete()
          Complete partial constructor.
 int getDepth()
           
 java.lang.String getFile()
           
 java.lang.String getMethod()
           
 Frame getParent()
          Get a Frame representing the function one level up in this frame.
 java.lang.String getStack()
           
 java.lang.StackTraceElement getStackTraceElement()
           
 java.lang.String getThread()
           
 java.lang.String getWhere()
           
private  void init(int ignoreFrames, boolean partial)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__className

private static java.lang.String __className

__lineSeparator

private static final java.lang.String __lineSeparator

_stack

private java.lang.StackTraceElement[] _stack

_string

private java.lang.String _string
The full stack of where the Frame was created.


_method

private java.lang.String _method
The Method (including the "(file.java:99)") the Frame was created in


_depth

private int _depth
The stack depth where the Frame was created (main is 1)


_thread

private java.lang.String _thread
Name of the Thread the Frame was created in


_file

private java.lang.String _file
The file and linenumber of where the Frame was created.


_where

private java.lang.String _where

_top

private int _top
Constructor Detail

Frame

public Frame()
Construct a frame.


Frame

public Frame(int ignoreFrames)
Construct a frame.


Frame

Frame(int ignoreFrames,
      boolean partial)
package private Constructor.


Frame

private Frame(java.lang.StackTraceElement[] stack,
              int top)
Method Detail

init

private void init(int ignoreFrames,
                  boolean partial)

complete

void complete()
Complete partial constructor.


getStackTraceElement

public java.lang.StackTraceElement getStackTraceElement()

getStack

public java.lang.String getStack()

getMethod

public java.lang.String getMethod()

getDepth

public int getDepth()

getThread

public java.lang.String getThread()

getFile

public java.lang.String getFile()

getWhere

public java.lang.String getWhere()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getParent

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