public class InterpretedPage extends QuercusPage
Constructor and Description |
---|
InterpretedPage(QuercusProgram program) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Value |
execute(Env env)
Execute the program
|
InterpretedClassDef |
findClass(java.lang.String name)
Finds the class
|
AbstractFunction |
findFunction(StringValue 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() |
addClass, addFunction, executeTop, getUserPath, init, setProfilePage
public InterpretedPage(QuercusProgram program)
public boolean isModified()
isModified
in class QuercusPage
public QuercusPage getProfilePage()
getProfilePage
in class QuercusPage
public QuercusPage getCompiledPage()
getCompiledPage
in class QuercusPage
public Value execute(Env env)
execute
in class QuercusPage
env
- the calling environmentpublic Path getPwd(Env env)
getPwd
in class QuercusPage
public Path getSelfPath(Env env)
getSelfPath
in class QuercusPage
public void init(Env env)
init
in class QuercusPage
public void importDefinitions(Env env)
importDefinitions
in class QuercusPage
public AbstractFunction findFunction(StringValue name)
findFunction
in class QuercusPage
public InterpretedClassDef findClass(java.lang.String name)
findClass
in class QuercusPage
public java.util.HashMap<java.lang.String,ClassDef> getClassMap()
getClassMap
in class QuercusPage
public boolean setRuntimeFunction(AbstractFunction[] funList)
setRuntimeFunction
in class QuercusPage
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class QuercusPage