Class ElementValueGen

    • Constructor Detail

      • ElementValueGen

        protected ElementValueGen​(int type,
                                  ConstantPoolGen cpGen)
    • Method Detail

      • getElementValue

        public abstract ElementValue getElementValue()
        Subtypes return an immutable variant of the ElementValueGen
      • getElementValueType

        public int getElementValueType()
      • stringifyValue

        public abstract java.lang.String stringifyValue()
      • dump

        public abstract void dump​(java.io.DataOutputStream dos)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readElementValue

        public static ElementValueGen readElementValue​(java.io.DataInput dis,
                                                       ConstantPoolGen cpGen)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static ElementValueGen copy​(ElementValue value,
                                           ConstantPoolGen cpool,
                                           boolean copyPoolEntries)
        Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.