Class GClass
- java.lang.Object
-
- org.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArray
bytecode
protected ClassFactory
cf
protected java.lang.String
qualifiedName
-
Constructor Summary
Constructors Constructor Description GClass(ClassFactory cf, java.lang.String qualifiedName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFullName()
the class's qualified nameGeneratedClass
getGeneratedClass()
Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.(package private) 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, 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 interfaceClassBuilder
-
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 interfaceClassBuilder
- Throws:
StandardException
- Standard Derby policy
-
writeClassFile
protected void writeClassFile(java.lang.String dir, boolean logMessage, java.lang.Throwable t) throws StandardException
- Throws:
StandardException
-
validateType
final void validateType(java.lang.String typeName1)
-
-