Class ConstPool

    • Field Detail

      • entries

        private final java.util.LinkedHashMap<java.lang.Integer,​ConstPoolEntry> entries
      • utf8Locations

        private final java.util.Map<java.lang.String,​java.lang.Integer> utf8Locations
      • classLocations

        private final java.util.Map<java.lang.String,​java.lang.Integer> classLocations
      • stringLocations

        private final java.util.Map<java.lang.String,​java.lang.Integer> stringLocations
      • nameAndTypeLocations

        private final java.util.Map<ConstPool.NameAndType,​java.lang.Integer> nameAndTypeLocations
      • fieldLocations

        private final java.util.Map<ConstPool.MemberInfo,​java.lang.Integer> fieldLocations
      • methodLocations

        private final java.util.Map<ConstPool.MemberInfo,​java.lang.Integer> methodLocations
      • interfaceMethodLocations

        private final java.util.Map<ConstPool.MemberInfo,​java.lang.Integer> interfaceMethodLocations
      • integerLocations

        private final java.util.Map<java.lang.Integer,​java.lang.Integer> integerLocations
      • floatLocations

        private final java.util.Map<java.lang.Float,​java.lang.Integer> floatLocations
      • longLocations

        private final java.util.Map<java.lang.Long,​java.lang.Integer> longLocations
      • doubleLocations

        private final java.util.Map<java.lang.Double,​java.lang.Integer> doubleLocations
      • count

        private int count
      • constPoolSize

        private java.lang.Integer constPoolSize
        The constant_pool_count field of the class file format
    • Constructor Detail

      • ConstPool

        public ConstPool()
    • Method Detail

      • addUtf8Entry

        public java.lang.Integer addUtf8Entry​(java.lang.String entry)
      • addClassEntry

        public java.lang.Integer addClassEntry​(java.lang.String className)
        Adds a CONSTANT_Class_info to the const pool. This must be in internal form
      • addStringEntry

        public java.lang.Integer addStringEntry​(java.lang.String string)
        Adds a CONSTANT_String_info to the const pool.
      • addIntegerEntry

        public java.lang.Integer addIntegerEntry​(int entry)
      • addFloatEntry

        public java.lang.Integer addFloatEntry​(float entry)
      • addLongEntry

        public java.lang.Integer addLongEntry​(long entry)
      • addDoubleEntry

        public java.lang.Integer addDoubleEntry​(double entry)
      • addNameAndTypeEntry

        public java.lang.Integer addNameAndTypeEntry​(java.lang.String name,
                                                     java.lang.String type)
      • addFieldEntry

        public java.lang.Integer addFieldEntry​(java.lang.String className,
                                               java.lang.String fieldName,
                                               java.lang.String fieldType)
      • addMethodEntry

        public java.lang.Integer addMethodEntry​(java.lang.String className,
                                                java.lang.String methodName,
                                                java.lang.String descriptor)
      • addInterfaceMethodEntry

        public java.lang.Integer addInterfaceMethodEntry​(java.lang.String className,
                                                         java.lang.String methodName,
                                                         java.lang.String descriptor)