Class ConstantPools

  • All Implemented Interfaces:
    Iterable<org.openjdk.jmc.flightrecorder.writer.ConstantPool>

    public final class ConstantPools
    extends Object
    implements Iterable<org.openjdk.jmc.flightrecorder.writer.ConstantPool>
    A per-type map of ConstantPool instances
    • Constructor Detail

      • ConstantPools

        public ConstantPools()
    • Method Detail

      • forType

        public org.openjdk.jmc.flightrecorder.writer.ConstantPool forType​(TypeImpl type)
        Get the ConstantPool instance associated with the given type
        Parameters:
        type - the type to get the constant pool for
        Returns:
        the associated ConstantPool instance
        Throws:
        IllegalArgumentException - if the type does not support constant pools
      • size

        public int size()
      • iterator

        public Iterator<org.openjdk.jmc.flightrecorder.writer.ConstantPool> iterator()
        Specified by:
        iterator in interface Iterable<org.openjdk.jmc.flightrecorder.writer.ConstantPool>
      • forEach

        public void forEach​(Consumer<? super org.openjdk.jmc.flightrecorder.writer.ConstantPool> action)
        Specified by:
        forEach in interface Iterable<org.openjdk.jmc.flightrecorder.writer.ConstantPool>
      • spliterator

        public Spliterator<org.openjdk.jmc.flightrecorder.writer.ConstantPool> spliterator()
        Specified by:
        spliterator in interface Iterable<org.openjdk.jmc.flightrecorder.writer.ConstantPool>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object