Documentation of 'org.apache.derby.iapi.services.classfile.ClassHolder' Java class
ClassHolder
org.apache.derby.iapi.services.classfile

Class ClassHolder

  • Direct Known Subclasses:
    ClassInvestigator


    public class ClassHolder
    extends java.lang.Object
    Based upon "THE class FILE FORMAT" chapter of "The Java Virtual Machine Specification" corresponding to version 1.0.2 of the Java Virtual Machine and 1.0.2 of the Java Language Specification. ISBN 0-201-63452-X, September 1996.
    • Constructor Detail

      • ClassHolder

        public ClassHolder(java.lang.String fullyQualifiedName,
                           java.lang.String superClassName,
                           int modifiers)
        This will not define a constructor -- it is up to the caller to add at least one.
    • Method Detail

      • getFileFormat

        public ByteArray getFileFormat()
                                throws java.io.IOException
        Convert the object representation of the class into its class file format.
        Throws:
        java.io.IOException - error writing the class
      • getModifier

        public int getModifier()
        See Also:
        ClassMember
      • getName

        public java.lang.String getName()
        See Also:
        ClassMember
      • addFieldReference

        public int addFieldReference(ClassMember field)
      • getConstantPoolIndex

        public int getConstantPoolIndex()
        See Also:
        ClassMember
      • addAttribute

        public void addAttribute(java.lang.String attributeName,
                                 ClassFormatOutput info)
      • getSuperClassName

        public java.lang.String getSuperClassName()
      • addClassReference

        public int addClassReference(java.lang.String fullyQualifiedName)
        Add a class entry to the pool.
      • findClass

        public int findClass(java.lang.String fullyQualifiedName)
        Find a class descriptor (section 4.4.1) and return its index, returns -1 if not found.
      • findNameAndType

        public int findNameAndType(java.lang.String name,
                                   java.lang.String descriptor)
        Find a name and type descriptor (section 4.4.6) and return it's index.

        returns -1 if not found.

      • isExternalClassName

        public static boolean isExternalClassName(java.lang.String className)
      • convertToInternalClassName

        public static java.lang.String convertToInternalClassName(java.lang.String externalName)
      • convertToInternalDescriptor

        public static java.lang.String convertToInternalDescriptor(java.lang.String externalName)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.