Documentation of 'org.apache.bcel.classfile.ConstantCP' Java class
ConstantCP
org.apache.bcel.classfile

Class ConstantCP

    • Constructor Detail

      • ConstantCP

        public ConstantCP(ConstantCP c)
        Initialize from another object.
    • Method Detail

      • dump

        public final void dump(java.io.DataOutputStream file)
                        throws java.io.IOException
        Dump constant field reference to file stream in binary format.
        Specified by:
        dump in class Constant
        Parameters:
        file - Output file stream
        Throws:
        java.io.IOException
      • getClassIndex

        public final int getClassIndex()
        Returns:
        Reference (index) to class this constant refers to.
      • setClassIndex

        public final void setClassIndex(int class_index)
        Parameters:
        class_index - points to Constant_class
      • getNameAndTypeIndex

        public final int getNameAndTypeIndex()
        Returns:
        Reference (index) to signature of the field.
      • setNameAndTypeIndex

        public final void setNameAndTypeIndex(int name_and_type_index)
        Parameters:
        name_and_type_index - points to Constant_NameAndType
      • getClass

        public java.lang.String getClass(ConstantPool cp)
        Returns:
        Class this field belongs to.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Constant
        Returns:
        String representation. not final as ConstantInvokeDynamic needs to modify

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.