Class ConstantPoolReader


  • public class ConstantPoolReader
    extends java.lang.Object
    A JVMS ยง4.4 constant pool reader.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String classInfo​(int index)
      Reads the CONSTANT_Class_info at the given index.
      java.lang.String moduleInfo​(int index)
      Reads the CONSTANT_Module_info at the given index.
      java.lang.String packageInfo​(int index)
      Reads the CONSTANT_Package_info at the given index.
      static ConstantPoolReader readConstantPool​(ByteReader reader)
      Skips over all constant pool entries, saving the byte offset of each index so it can be read later if it's needed.
      java.lang.String utf8​(int index)
      Reads the CONSTANT_Utf8_info at the given index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • readConstantPool

        public static ConstantPoolReader readConstantPool​(ByteReader reader)
        Skips over all constant pool entries, saving the byte offset of each index so it can be read later if it's needed.
      • classInfo

        public java.lang.String classInfo​(int index)
        Reads the CONSTANT_Class_info at the given index.
      • utf8

        public java.lang.String utf8​(int index)
        Reads the CONSTANT_Utf8_info at the given index.
      • moduleInfo

        public java.lang.String moduleInfo​(int index)
        Reads the CONSTANT_Module_info at the given index.
      • packageInfo

        public java.lang.String packageInfo​(int index)
        Reads the CONSTANT_Package_info at the given index.