public abstract class QuercusPage
extends java.lang.Object
Constructor and Description |
---|
QuercusPage() |
Modifier and Type | Method and Description |
---|---|
protected void |
addClass(java.lang.String name,
ClassDef cl)
Adds a class.
|
protected void |
addFunction(StringValue 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(StringValue 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() |
public boolean isModified()
public QuercusPage getCompiledPage()
public java.lang.String getUserPath()
public QuercusPage getProfilePage()
public void setProfilePage(QuercusPage profilePage)
public AbstractFunction findFunction(StringValue 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 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(StringValue 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