|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.program.QuercusProgram
public class QuercusProgram
Represents a compiled Quercus program.
| Constructor Summary | |
|---|---|
QuercusProgram(QuercusContext quercus,
Path sourceFile,
java.util.HashMap<java.lang.String,Function> functionMap,
java.util.ArrayList<Function> functionList,
java.util.HashMap<java.lang.String,InterpretedClassDef> classMap,
java.util.ArrayList<InterpretedClassDef> classList,
FunctionInfo functionInfo,
Statement statement)
Creates a new quercus program |
|
QuercusProgram(QuercusContext quercus,
Path sourceFile,
QuercusPage page)
Creates a new quercus program |
|
| Method Summary | |
|---|---|
void |
addDepend(Path path)
Adds a dependency. |
QuercusProgram |
createExprReturn()
Creates a return for the final expr. |
Value |
execute(Env env)
Execute the program |
AbstractFunction |
findFunction(java.lang.String name)
Finds a function. |
void |
finishCompiling()
|
java.util.Collection<InterpretedClassDef> |
getClasses()
Returns the classes. |
java.util.ArrayList<InterpretedClassDef> |
getClassList()
Returns the functions. |
QuercusPage |
getCompiledPage()
Returns the compiled page. |
java.lang.Exception |
getCompileException()
|
java.util.ArrayList<PersistentDependency> |
getDependencyList()
|
FunctionInfo |
getFunctionInfo()
|
java.util.ArrayList<Function> |
getFunctionList()
Returns the functions. |
java.util.Collection<Function> |
getFunctions()
Returns the functions. |
QuercusContext |
getPhp()
Returns the engine. |
QuercusPage |
getProfilePage()
Returns the profiling page. |
AbstractFunction[] |
getRuntimeFunctionList()
|
Path |
getSourcePath()
Returns the source path. |
Statement |
getStatement()
|
void |
importDefinitions(Env env)
Imports the page definitions. |
void |
init(Env env)
Imports the page definitions. |
boolean |
isCompilable()
|
boolean |
isCompiling()
|
boolean |
isModified()
Returns true if the function is modified. |
void |
setCompilable(boolean isCompilable)
|
void |
setCompiledPage(QuercusPage page)
Sets the compiled page. |
void |
setCompileException(java.lang.Exception e)
|
void |
setProfilePage(QuercusPage page)
Sets the profiling page. |
boolean |
setRuntimeFunction(AbstractFunction[] funList)
Sets a runtime function array after an env. |
boolean |
startCompiling()
|
java.lang.String |
toString()
|
void |
waitForCompile()
|
void |
waitForRuntimeFunctionList(long timeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuercusProgram(QuercusContext quercus,
Path sourceFile,
java.util.HashMap<java.lang.String,Function> functionMap,
java.util.ArrayList<Function> functionList,
java.util.HashMap<java.lang.String,InterpretedClassDef> classMap,
java.util.ArrayList<InterpretedClassDef> classList,
FunctionInfo functionInfo,
Statement statement)
quercus - the owning quercus enginesourceFile - the path to the source filestatement - the top-level statement
public QuercusProgram(QuercusContext quercus,
Path sourceFile,
QuercusPage page)
quercus - the owning quercus enginesourceFile - the path to the source filestatement - the top-level statement| Method Detail |
|---|
public QuercusContext getPhp()
public Path getSourcePath()
public FunctionInfo getFunctionInfo()
public Statement getStatement()
public boolean startCompiling()
public void finishCompiling()
public void waitForCompile()
public boolean isCompiling()
public void setCompilable(boolean isCompilable)
public boolean isCompilable()
public void setCompileException(java.lang.Exception e)
public java.lang.Exception getCompileException()
public void addDepend(Path path)
public java.util.ArrayList<PersistentDependency> getDependencyList()
public boolean isModified()
public QuercusPage getCompiledPage()
public void setCompiledPage(QuercusPage page)
public QuercusPage getProfilePage()
public void setProfilePage(QuercusPage page)
public AbstractFunction findFunction(java.lang.String name)
public java.util.Collection<Function> getFunctions()
public java.util.ArrayList<Function> getFunctionList()
public java.util.Collection<InterpretedClassDef> getClasses()
public java.util.ArrayList<InterpretedClassDef> getClassList()
public QuercusProgram createExprReturn()
public Value execute(Env env)
env - the calling environment
public void init(Env env)
public boolean setRuntimeFunction(AbstractFunction[] funList)
public AbstractFunction[] getRuntimeFunctionList()
public void waitForRuntimeFunctionList(long timeout)
public void importDefinitions(Env env)
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 | |||||||||