com.caucho.quercus.program
Class ProClassDef

java.lang.Object
  extended by com.caucho.quercus.program.ClassDef
      extended by com.caucho.quercus.program.InterpretedClassDef
          extended by com.caucho.quercus.program.ProClassDef
All Implemented Interfaces:
InstanceInitializer

public class ProClassDef
extends InterpretedClassDef

Represents an interpreted PHP class definition.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.quercus.program.ClassDef
ClassDef.FieldEntry, ClassDef.StaticFieldEntry
 
Field Summary
 
Fields inherited from class com.caucho.quercus.program.InterpretedClassDef
_call, _comment, _constMap, _constructor, _destructor, _fieldMap, _functionMap, _getField, _hasNonPublicMethods, _invoke, _isAbstract, _isFinal, _isInterface, _isset, _parseIndex, _setField, _staticFieldMap, _toString, _unset
 
Constructor Summary
ProClassDef(Location location, java.lang.String name, java.lang.String parentName, java.lang.String[] ifaceList, int index)
           
 
Method Summary
 void analyze(QuercusProgram program)
          Analyzes the class
 void generate(PhpWriter out)
          Generates the class.
 void generateInit(PhpWriter out)
          Generates the class initialization.
 void generateInit(PhpWriter out, boolean useEnv)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.program.InterpretedClassDef
addConstant, addFunction, addStaticValue, addStaticValue, addValue, addValue, fieldSet, findConstant, findConstructor, functionSet, get, getComment, getCompilationName, getFieldComment, getHasNonPublicMethods, getStaticFieldComment, init, initClass, initInstance, isAbstract, isDeclaredField, isFinal, isInterface, isTopScope, setAbstract, setComment, setConstructor, setFinal, setInterface, setTopScope, staticFieldSet
 
Methods inherited from class com.caucho.quercus.program.ClassDef
addInterface, addInterfaces, callNew, callNew, createObject, getCall, getExtension, getInterfaces, getLocation, getName, getParentName, hasNonPublicMethods, init, init, isA, loadClassDef, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProClassDef

public ProClassDef(Location location,
                   java.lang.String name,
                   java.lang.String parentName,
                   java.lang.String[] ifaceList,
                   int index)
Method Detail

analyze

public void analyze(QuercusProgram program)
Analyzes the class


generate

public void generate(PhpWriter out)
              throws java.io.IOException
Generates the class.

Throws:
java.io.IOException

generateInit

public void generateInit(PhpWriter out,
                         boolean useEnv)
                  throws java.io.IOException
Throws:
java.io.IOException

generateInit

public void generateInit(PhpWriter out)
                  throws java.io.IOException
Generates the class initialization.

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class ClassDef