Class ClassFile.ConstantClassInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      ConstantClassInfo​(short nameIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName​(ClassFile classFile)  
      int hashCode()  
      boolean isWide()  
      void store​(java.io.DataOutputStream dos)
      Stores this CP entry into a DataOutputStream.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConstantClassInfo

        public ConstantClassInfo​(short nameIndex)
    • Method Detail

      • getName

        public java.lang.String getName​(ClassFile classFile)
        Returns:
        The class's or interface's name in "internal form" (JVMS7 4.2.1)
      • isWide

        public boolean isWide()
        Specified by:
        isWide in class ClassFile.ConstantPoolInfo
        Returns:
        Whether this CP entry is "wide" in the sense of JVMS7 4.4.5
      • store

        public void store​(java.io.DataOutputStream dos)
                   throws java.io.IOException
        Description copied from class: ClassFile.ConstantPoolInfo
        Stores this CP entry into a DataOutputStream.

        See JVMS7 4.4.1 and following.

        Specified by:
        store in class ClassFile.ConstantPoolInfo
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object