2004.04.29


com.jdc.sys
Class Stack

java.lang.Object
  |
  +--com.jdc.sys.Stack
All Implemented Interfaces:
Serializable

public class Stack
extends Object
implements Serializable

Stack represents an execution stack trace. You may optionally specify a class of type Throwable to use to generate the stack trace. If an exception class is not provided, Stack will generate an execution stack trace for the current call stack using type RuntimeException.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Nested Class Summary
 class Stack.Trace
          Trace represents the stack trace for a Throwable, i.e.
 
Constructor Summary
Stack()
          Constructs a new Stack object for the current call stack.
Stack(String stackTrace)
          Constructs a new Stack object for the specified stack trace String,
Stack(Throwable throwable)
          Constructs a new Stack object for the specified stack trace Throwable, i.e.
 
Method Summary
 Stack.Trace getTrace()
          Returns the stack trace information.
static void main(String[] args)
          Unit test for class Stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stack

public Stack()
Constructs a new Stack object for the current call stack.


Stack

public Stack(String stackTrace)
Constructs a new Stack object for the specified stack trace String,


Stack

public Stack(Throwable throwable)
Constructs a new Stack object for the specified stack trace Throwable, i.e. Stack.Trace.Exception, object.

Method Detail

getTrace

public Stack.Trace getTrace()
Returns the stack trace information.

Returns:
Trace The stack trace information.

main

public static void main(String[] args)
Unit test for class Stack.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.