Package railo.runtime.functions.system

Source Code of railo.runtime.functions.system.GetCurrentContext

package railo.runtime.functions.system;

import railo.runtime.PageContext;
import railo.runtime.ext.function.Function;
import railo.runtime.type.Array;
import railo.runtime.type.ArrayImpl;
import railo.runtime.type.util.KeyConstants;

/**
* returns the root of this actuell Page Context
*/
public final class GetCurrentContext implements Function {
 
  public static Array call(PageContext pc) {
    Array arr=new ArrayImpl();
    CallStackGet._getTagContext(pc, arr, new Exception("Stack trace"),KeyConstants._line);
    return arr;
  }
}
TOP

Related Classes of railo.runtime.functions.system.GetCurrentContext

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.