org.apache.cocoon.callstack
Class CallStack

java.lang.Object
  extended by org.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.html 1422810 2012-12-17 09:13:50Z ilgrosso $

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-2012 The Apache Software Foundation. All Rights Reserved.