|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.page.QuercusPage
public abstract class QuercusPage
Represents a compiled PHP program.
Constructor Summary | |
---|---|
QuercusPage()
|
Method Summary | |
---|---|
protected void |
addClass(java.lang.String name,
ClassDef cl)
Adds a class. |
protected void |
addFunction(java.lang.String name,
AbstractFunction fun)
Adds a function. |
abstract Value |
execute(Env env)
Execute the program |
Value |
executeTop(Env env)
Execute the program as top-level, i.e. |
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. |
QuercusPage |
getCompiledPage()
Returns the compiling page, if any |
QuercusPage |
getProfilePage()
Returns the profiling page, if any |
Path |
getPwd(Env env)
Returns the pwd according to the source page. |
abstract Path |
getSelfPath(Env env)
Returns the page's path. |
java.lang.String |
getUserPath()
Returns the user name for profiling, if any |
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. |
void |
setProfilePage(QuercusPage profilePage)
Sets the profiling page, if any |
boolean |
setRuntimeFunction(AbstractFunction[] funList)
Sets a runtime function array after an env. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QuercusPage()
Method Detail |
---|
public boolean isModified()
public QuercusPage getCompiledPage()
public java.lang.String getUserPath()
public QuercusPage getProfilePage()
public void setProfilePage(QuercusPage profilePage)
public abstract Path getSelfPath(Env env)
public AbstractFunction findFunction(java.lang.String name)
public ClassDef findClass(java.lang.String name)
public java.util.HashMap<java.lang.String,ClassDef> getClassMap()
public Value executeTop(Env env)
env
- the calling environmentpublic Path getPwd(Env env)
public abstract Value execute(Env env)
env
- the calling environmentpublic void init(QuercusContext quercus)
quercus
- the owning enginepublic void init(Env env)
quercus
- the owning enginepublic void importDefinitions(Env env)
protected void addFunction(java.lang.String name, AbstractFunction fun)
protected void addClass(java.lang.String name, ClassDef cl)
public boolean setRuntimeFunction(AbstractFunction[] funList)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |