Top Description Fields Constructors Methods
org.apache.derby.impl.services.bytecode

public abstract Class GClass

extends Object
implements ClassBuilder
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.compiler.ClassBuilder
Known Direct Subclasses
org.apache.derby.impl.services.bytecode.BCClass
Imports
org.apache.derby.iapi.services.compiler.ClassBuilder, org.apache.derby.iapi.services.loader.ClassFactory, .GeneratedClass, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.stream.HeaderPrintWriter, org.apache.derby.iapi.services.monitor.Monitor, org.apache.derby.iapi.util.ByteArray, java.io.File, .FileNotFoundException, .FileOutputStream, .IOException

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

Field Summary

Modifier and TypeField and Description
protected ByteArray
protected final ClassFactory
protected final String

Constructor Summary

AccessConstructor and Description
public
GClass(ClassFactory cf, String qualifiedName)

Method Summary

Modifier and TypeMethod and Description
public String
public GeneratedClass
getGeneratedClass()

Implements org.apache.derby.iapi.services.compiler.ClassBuilder.getGeneratedClass.

Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.
pack-priv final void
validateType(String typeName1)

protected void
writeClassFile(String dir, boolean logMessage, Throwable t)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytecodeback to summary
protected ByteArray bytecode
cfback to summary
protected final ClassFactory cf
qualifiedNameback to summary
protected final String qualifiedName

Constructor Detail

GClassback to summary
public GClass(ClassFactory cf, String qualifiedName)

Method Detail

getFullNameback to summary
public String getFullName()

Implements org.apache.derby.iapi.services.compiler.ClassBuilder.getFullName.

Doc from org.apache.derby.iapi.services.compiler.ClassBuilder.getFullName.

the class's qualified name

getGeneratedClassback to summary
public GeneratedClass getGeneratedClass() throws StandardException

Implements org.apache.derby.iapi.services.compiler.ClassBuilder.getGeneratedClass.

Doc from org.apache.derby.iapi.services.compiler.ClassBuilder.getGeneratedClass.

Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.

Exceptions
StandardException:
Standard Derby policy
validateTypeback to summary
pack-priv final void validateType(String typeName1)
writeClassFileback to summary
protected void writeClassFile(String dir, boolean logMessage, Throwable t) throws StandardException