com.caucho.quercus.env
Class ProfilePage

java.lang.Object
  extended by com.caucho.quercus.page.QuercusPage
      extended by com.caucho.quercus.env.ProfilePage

public class ProfilePage
extends QuercusPage

Represents a compiled function


Constructor Summary
ProfilePage(QuercusPage page, int id)
           
 
Method Summary
 Value execute(Env env)
          Execute the program
 ClassDef findClass(java.lang.String name)
          Finds a function.
 AbstractFunction findFunction(java.lang.String name)
          Finds a function.
 java.util.HashMap<java.lang.String,ClassDef> getClassMap()
          Returns the class map.
 Path getPwd(Env env)
          Returns the pwd according to the source page.
 Path getSelfPath(Env env)
          Returns the page's path.
 void importDefinitions(Env env)
          Imports the page definitions.
 void init(Env env)
          Initialize the environment
 void init(QuercusContext quercus)
          Initialize the program
 boolean isModified()
          Returns true if the page is modified.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.page.QuercusPage
addClass, addFunction, executeTop, getCompiledPage, getProfilePage, getUserPath, setProfilePage, setRuntimeFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfilePage

public ProfilePage(QuercusPage page,
                   int id)
Method Detail

isModified

public boolean isModified()
Returns true if the page is modified.

Overrides:
isModified in class QuercusPage

getSelfPath

public Path getSelfPath(Env env)
Returns the page's path.

Specified by:
getSelfPath in class QuercusPage

findFunction

public AbstractFunction findFunction(java.lang.String name)
Finds a function.

Overrides:
findFunction in class QuercusPage

findClass

public ClassDef findClass(java.lang.String name)
Finds a function.

Overrides:
findClass in class QuercusPage

getClassMap

public java.util.HashMap<java.lang.String,ClassDef> getClassMap()
Returns the class map.

Overrides:
getClassMap in class QuercusPage

getPwd

public Path getPwd(Env env)
Returns the pwd according to the source page.

Overrides:
getPwd in class QuercusPage

execute

public Value execute(Env env)
Execute the program

Specified by:
execute in class QuercusPage
Parameters:
env - the calling environment

init

public void init(QuercusContext quercus)
Initialize the program

Overrides:
init in class QuercusPage
Parameters:
quercus - the owning engine

init

public void init(Env env)
Initialize the environment

Overrides:
init in class QuercusPage
Parameters:
quercus - the owning engine

importDefinitions

public void importDefinitions(Env env)
Imports the page definitions.

Overrides:
importDefinitions in class QuercusPage

toString

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