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 ByteArraybytecodeprotected ClassFactorycfprotected java.lang.StringqualifiedName
-
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.StringgetFullName()the class's qualified nameGeneratedClassgetGeneratedClass()Fully create the bytecode and load the class using the ClassBuilder's ClassFactory.(package private) voidvalidateType(java.lang.String typeName1)protected voidwriteClassFile(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:ClassBuilderthe class's qualified name- Specified by:
getFullNamein interfaceClassBuilder
-
getGeneratedClass
public GeneratedClass getGeneratedClass() throws StandardException
Description copied from interface:ClassBuilderFully create the bytecode and load the class using the ClassBuilder's ClassFactory.- Specified by:
getGeneratedClassin 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)
-
-