Documentation of 'org.apache.bcel.generic.CPInstruction' Java class
CPInstruction
org.apache.bcel.generic

Class CPInstruction

    • Method Detail

      • dump

        public void dump(java.io.DataOutputStream out)
                  throws java.io.IOException
        Dump instruction as byte code to stream out.
        Overrides:
        dump in class Instruction
        Parameters:
        out - Output stream
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString(boolean verbose)
        Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">"
        Overrides:
        toString in class Instruction
        Parameters:
        verbose - long/short format switch
        Returns:
        mnemonic for instruction
      • toString

        public java.lang.String toString(ConstantPool cp)
        Overrides:
        toString in class Instruction
        Returns:
        mnemonic for instruction with symbolic references resolved
      • getIndex

        public final int getIndex()
        Specified by:
        getIndex in interface IndexedInstruction
        Returns:
        index in constant pool referred by this instruction.
      • setIndex

        public void setIndex(int index)
        Set the index to constant pool.
        Specified by:
        setIndex in interface IndexedInstruction
        Parameters:
        index - in constant pool.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.