Class InstructionLV

java.lang.Object
org.aspectj.apache.bcel.generic.Instruction
org.aspectj.apache.bcel.generic.InstructionLV
All Implemented Interfaces:
Serializable, Cloneable, Constants
Direct Known Subclasses:
IINC, InstructionCLV

public class InstructionLV extends Instruction
Abstract super class for instructions dealing with local variables.
Version:
$Id: InstructionLV.java,v 1.5 2009/10/05 17:35:36 aclement Exp $
Author:
M. Dahm
See Also:
Serialized Form
  • Field Details

    • lvar

      protected int lvar
  • Constructor Details

    • InstructionLV

      public InstructionLV(short opcode, int lvar)
    • InstructionLV

      public InstructionLV(short opcode)
  • Method Details

    • dump

      public void dump(DataOutputStream out) throws IOException
      Overrides:
      dump in class Instruction
      Throws:
      IOException
    • toString

      public String toString(boolean verbose)
      Long output format: 'name of opcode' "[" 'opcode number' "]" "(" 'length of instruction' ")" "<" 'local variable index' ">"
      Overrides:
      toString in class Instruction
    • isALOAD

      public boolean isALOAD()
      Overrides:
      isALOAD in class Instruction
    • isASTORE

      public boolean isASTORE()
      Overrides:
      isASTORE in class Instruction
    • getBaseOpcode

      public int getBaseOpcode()
    • getIndex

      public final int getIndex()
      Overrides:
      getIndex in class Instruction
      Returns:
      local variable index referred by this instruction.
    • setIndex

      public void setIndex(int i)
      Overrides:
      setIndex in class Instruction
    • canSetIndex

      public boolean canSetIndex()
    • setIndexAndCopyIfNecessary

      public InstructionLV setIndexAndCopyIfNecessary(int newIndex)
    • getLength

      public int getLength()
      Overrides:
      getLength in class Instruction
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Instruction
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Instruction