com.caucho.quercus.page
Class InterpretedPage

java.lang.Object
  extended by com.caucho.quercus.page.QuercusPage
      extended by com.caucho.quercus.page.InterpretedPage

public class InterpretedPage
extends QuercusPage

Represents an interpreted Quercus program.


Constructor Summary
InterpretedPage(QuercusProgram program)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Value execute(Env env)
          Execute the program
 InterpretedClassDef findClass(java.lang.String name)
          Finds the class
 AbstractFunction findFunction(java.lang.String name)
          Finds the function
 java.util.HashMap<java.lang.String,ClassDef> getClassMap()
          Returns the class map.
 QuercusPage getCompiledPage()
          Returns any profile page.
 QuercusPage getProfilePage()
          Returns any profile page.
 Path getPwd(Env env)
          Returns the pwd according to the source page.
 Path getSelfPath(Env env)
          Returns the pwd according to the source page.
 void importDefinitions(Env env)
          Imports the page definitions.
 void init(Env env)
          Imports the page definitions.
 boolean isModified()
          Returns true if the page is modified.
 boolean setRuntimeFunction(AbstractFunction[] funList)
          Sets a runtime function array after an env.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.page.QuercusPage
addClass, addFunction, executeTop, getUserPath, init, setProfilePage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpretedPage

public InterpretedPage(QuercusProgram program)
Method Detail

isModified

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

Overrides:
isModified in class QuercusPage

getProfilePage

public QuercusPage getProfilePage()
Returns any profile page.

Overrides:
getProfilePage in class QuercusPage

getCompiledPage

public QuercusPage getCompiledPage()
Returns any profile page.

Overrides:
getCompiledPage in class QuercusPage

execute

public Value execute(Env env)
Execute the program

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

getPwd

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

Overrides:
getPwd in class QuercusPage

getSelfPath

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

Specified by:
getSelfPath in class QuercusPage

init

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

Overrides:
init in class QuercusPage

importDefinitions

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

Overrides:
importDefinitions in class QuercusPage

findFunction

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

Overrides:
findFunction in class QuercusPage

findClass

public InterpretedClassDef findClass(java.lang.String name)
Finds the class

Overrides:
findClass in class QuercusPage

getClassMap

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

Overrides:
getClassMap in class QuercusPage

setRuntimeFunction

public boolean setRuntimeFunction(AbstractFunction[] funList)
Sets a runtime function array after an env.

Overrides:
setRuntimeFunction in class QuercusPage

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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