com.caucho.quercus.gen
Class QuercusMain

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.quercus.gen.QuercusMain

public class QuercusMain
extends ClassComponent

Represents the main method of a compiled PHP program.


Constructor Summary
QuercusMain(QuercusProgram program, java.lang.String className)
          Creates a new quercus main
 
Method Summary
protected  void generate(JavaWriter javaOut)
          Generates the code for the class component.
protected  void generateImport(PhpWriter out)
          Generates the import code.
protected  void generateIsModified(PhpWriter out)
          Generates the isModified code.
 void setProfile(boolean isProfile)
           
 void setUserPath(java.lang.String userPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuercusMain

public QuercusMain(QuercusProgram program,
                   java.lang.String className)
Creates a new quercus main

Parameters:
program - the owning quercus program
Method Detail

setProfile

public void setProfile(boolean isProfile)

setUserPath

public void setUserPath(java.lang.String userPath)

generate

protected void generate(JavaWriter javaOut)
                 throws java.io.IOException
Generates the code for the class component.

Overrides:
generate in class ClassComponent
Parameters:
javaOut - the writer to the output stream.
Throws:
java.io.IOException

generateImport

protected void generateImport(PhpWriter out)
                       throws java.io.IOException
Generates the import code.

Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException

generateIsModified

protected void generateIsModified(PhpWriter out)
                           throws java.io.IOException
Generates the isModified code.

Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException