nl.justobjects.toolkit.sys
Class Frame

java.lang.Object
  |
  +--nl.justobjects.toolkit.sys.Frame

public class Frame
extends java.lang.Object

Access the current execution frame


Field Summary
private static java.io.PrintWriter __out
           
private static java.io.StringWriter __stringWriter
           
private static java.lang.Throwable __throwable
          Shared static instances, reduces object creation at expense of lock contention in multi threaded debugging
private static java.lang.StringBuffer __writerBuffer
           
 int _depth
          The stack depth where the Frame was created (main is 1)
 java.lang.String _file
          The file and linenumber of where the Frame was created.
private  int _lineEnd
           
private  int _lineStart
           
 java.lang.String _method
          The Method (including the "(file.java:99)") the Frame was created in
 java.lang.String _stack
          The full stack of where the Frame was created.
 java.lang.String _thread
          Name of the Thread the Frame was created in
(package 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.
protected Frame(java.lang.String stack, int ignoreFrames, boolean partial)
          Internal only Constructor.
 
Method Summary
(package private)  void complete()
          Complete partial constructor
 java.lang.String file()
           
 Frame getParent()
          Get a Frame reresenting the function one level up in this frame
protected  void internalInit(int ignoreFrames, boolean partial)
           
static void main(java.lang.String[] argv)
           
(package private) static void realTest()
           
(package private) static void test()
           
private static void testChecker(Test t, Frame f, java.lang.String desc, java.lang.String method, int depth, java.lang.String thread, java.lang.String file)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

__throwable

private static java.lang.Throwable __throwable
Shared static instances, reduces object creation at expense of lock contention in multi threaded debugging

__stringWriter

private static java.io.StringWriter __stringWriter

__writerBuffer

private static java.lang.StringBuffer __writerBuffer

__out

private static java.io.PrintWriter __out

_stack

public java.lang.String _stack
The full stack of where the Frame was created.

_method

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

_depth

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

_thread

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

_file

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

_where

java.lang.String _where

_lineStart

private int _lineStart

_lineEnd

private int _lineEnd
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

Frame

Frame(int ignoreFrames,
      boolean partial)
package private Constructor.
Parameters:
ignoreFrames - Number of frames to ignore
partial - Partial construction if true

Frame

protected Frame(java.lang.String stack,
                int ignoreFrames,
                boolean partial)
Internal only Constructor.
Method Detail

internalInit

protected void internalInit(int ignoreFrames,
                            boolean partial)

complete

void complete()
Complete partial constructor

file

public java.lang.String file()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParent

public Frame getParent()
Get a Frame reresenting the function one level up in this frame
Returns:
parent frame or null if none

testChecker

private static void testChecker(Test t,
                                Frame f,
                                java.lang.String desc,
                                java.lang.String method,
                                int depth,
                                java.lang.String thread,
                                java.lang.String file)

test

static void test()

realTest

static void realTest()

main

public static void main(java.lang.String[] argv)


Copyright © 2000-2001 - Just Objects B.V.