Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.services.bytecode
Class GClass  view GClass download GClass.java

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

public abstract class GClass
extends java.lang.Object
implements org.apache.derby.iapi.services.compiler.ClassBuilder

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


Field Summary
protected  org.apache.derby.iapi.util.ByteArray bytecode
           
protected  org.apache.derby.iapi.services.loader.ClassFactory cf
           
protected  java.lang.String qualifiedName
           
 
Constructor Summary
GClass(org.apache.derby.iapi.services.loader.ClassFactory cf, java.lang.String qualifiedName)
           
 
Method Summary
 java.lang.String getFullName()
          the class's qualified name
 org.apache.derby.iapi.services.loader.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 org.apache.derby.iapi.util.ByteArray bytecode

cf

protected final org.apache.derby.iapi.services.loader.ClassFactory cf

qualifiedName

protected final java.lang.String qualifiedName
Constructor Detail

GClass

public GClass(org.apache.derby.iapi.services.loader.ClassFactory cf,
              java.lang.String qualifiedName)
Method Detail

getFullName

public java.lang.String getFullName()
Description copied from interface: org.apache.derby.iapi.services.compiler.ClassBuilder
the class's qualified name

Specified by:
getFullName in interface org.apache.derby.iapi.services.compiler.ClassBuilder

getGeneratedClass

public org.apache.derby.iapi.services.loader.GeneratedClass getGeneratedClass()
                                                                       throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.services.compiler.ClassBuilder
Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.

Specified by:
getGeneratedClass in interface org.apache.derby.iapi.services.compiler.ClassBuilder

writeClassFile

protected void writeClassFile(java.lang.String dir,
                              boolean logMessage,
                              java.lang.Throwable t)
                       throws org.apache.derby.iapi.error.StandardException

validateType

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