org.apache.cocoon.callstack
Class CallStack

java.lang.Object
  extended byorg.apache.cocoon.callstack.CallStack

public class CallStack
extends Object

Stack used for storing objects in the current call frame.

Since:
1.0.0
Version:
$Id: CallStack.java 608375 2008-01-03 08:33:00Z reinhard $

Constructor Summary
CallStack()
           
 
Method Summary
static void enter()
          This hook must be called each time a call frame is entered.
static CallFrame frameAt(int i)
          Get the frame at the i:th position in the call stack
static CallFrame getCurrentFrame()
          Use this method for getting the current call frame
static void leave()
          This hook must be called each time a call frame is left.
static int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallStack

public CallStack()
Method Detail

enter

public static void enter()
This hook must be called each time a call frame is entered.


leave

public static void leave()
This hook must be called each time a call frame is left.

It's the counterpart to the enter() method.


getCurrentFrame

public static CallFrame getCurrentFrame()
Use this method for getting the current call frame

Returns:
a call frame

size

public static int size()
Returns:
the size of the call stack

frameAt

public static CallFrame frameAt(int i)
Get the frame at the i:th position in the call stack

Parameters:
i -
Returns:


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.