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

Class LocalVariableInstruction

    • 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>")" "<"< local variable index>">"
        Overrides:
        toString in class Instruction
        Parameters:
        verbose - long/short format switch
        Returns:
        mnemonic for instruction
      • getIndex

        public final int getIndex()
        Specified by:
        getIndex in interface IndexedInstruction
        Returns:
        local variable index (n) referred by this instruction.
      • getCanonicalTag

        public short getCanonicalTag()
        Returns:
        canonical tag for instruction, e.g., ALOAD for ALOAD_0
      • getType

        public Type getType(ConstantPoolGen cp)
        Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned. This is just a bit incorrect, because ALOAD and ASTORE may work on every ReferenceType (including Type.NULL) and ASTORE may even work on a ReturnaddressType .
        Specified by:
        getType in interface TypedInstruction
        Returns:
        type associated with the instruction

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.