org.apache.derby.impl.services.bytecode
Class GClass

java.lang.Object
  extended byorg.apache.derby.impl.services.bytecode.GClass
All Implemented Interfaces:
ClassBuilder
Direct Known Subclasses:
BCClass

public abstract class GClass
extends java.lang.Object
implements ClassBuilder

This is a common superclass for the various impls. Saving class files is a common thing to do.

Author:
ames

Field Summary
protected  ByteArray bytecode
           
protected  ClassFactory cf
           
protected  java.lang.String qualifiedName
           
 
Constructor Summary
GClass(ClassFactory cf, java.lang.String qualifiedName)
           
 
Method Summary
 java.lang.String getFullName()
          the class's qualified name
 GeneratedClass getGeneratedClass()
          Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.
 void validateType(java.lang.String typeName1)
           
protected  void writeClassFile(java.lang.String dir, boolean logMessage, java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.services.compiler.ClassBuilder
addField, getClassBytecode, getName, newConstructorBuilder, newFieldWithAccessors, newMethodBuilder, newMethodBuilder
 

Field Detail

bytecode

protected ByteArray bytecode

cf

protected final ClassFactory cf

qualifiedName

protected final java.lang.String qualifiedName
Constructor Detail

GClass

public GClass(ClassFactory cf,
              java.lang.String qualifiedName)
Method Detail

getFullName

public java.lang.String getFullName()
Description copied from interface: ClassBuilder
the class's qualified name

Specified by:
getFullName in interface ClassBuilder

getGeneratedClass

public GeneratedClass getGeneratedClass()
                                 throws StandardException
Description copied from interface: ClassBuilder
Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.

Specified by:
getGeneratedClass in interface ClassBuilder
Throws:
StandardException - Standard Cloudscape policy

writeClassFile

protected void writeClassFile(java.lang.String dir,
                              boolean logMessage,
                              java.lang.Throwable t)
                       throws StandardException
Throws:
StandardException

validateType

public final void validateType(java.lang.String typeName1)

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.