Package soot.tagkit

Class BytecodeOffsetTag

  • All Implemented Interfaces:
    Tag

    public class BytecodeOffsetTag
    extends Object
    implements Tag
    This class represents a tag for byte-code offset of instructions that correspond to Jimple statements.
    Since:
    October 3 2002 Initial creation.
    Author:
    Roman Manevich.
    • Field Detail

      • offset

        protected final int offset
        The index of the last byte-code instruction.
    • Constructor Detail

      • BytecodeOffsetTag

        public BytecodeOffsetTag​(int offset)
        Constructs a tag from the index offset.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Tag
        Returns the tag name.
        Specified by:
        getName in interface Tag
      • getValue

        public byte[] getValue()
        Returns the offset in a four byte array.
        Specified by:
        getValue in interface Tag
      • getBytecodeOffset

        public int getBytecodeOffset()
        Returns the offset as an int.
      • toString

        public String toString()
        Returns the offset in a string.
        Overrides:
        toString in class Object