|
||||||||||
| 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. |
Path |
getPwd(Env env)
Returns the pwd according to the source page. |
abstract 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(Quercus quercus)
Initialize the program |
boolean |
isModified(Env env)
Returns true if the page is modified. |
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(Env env)
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(Quercus 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 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 | |||||||||