Class ConstantPool

  • All Implemented Interfaces:
    RuntimeConstants

    public final class ConstantPool
    extends java.lang.Object
    implements RuntimeConstants
    A table of constants WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
    • Constructor Detail

      • ConstantPool

        public ConstantPool()
    • Method Detail

      • index

        public int index​(java.lang.Object obj)
        Find an entry, may return 0
      • put

        public void put​(java.lang.Object obj)
        Add an entry
      • write

        public void write​(Environment env,
                          java.io.DataOutputStream out)
                   throws java.io.IOException
        Write to output
        Throws:
        java.io.IOException
      • xsort

        private static void xsort​(ConstantPoolData[] ff,
                                  java.lang.String[] ss,
                                  int left,
                                  int right)
        Quick sort an array of pool entries and a corresponding array of Strings that are the sort keys for the field.