soot.tagkit
Class BytecodeOffsetTag

java.lang.Object
  extended by soot.tagkit.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.

Constructor Summary
BytecodeOffsetTag(int offset)
          Constructs a tag from the index offset.
 
Method Summary
 int getBytecodeOffset()
          Returns the offset as an int.
 String getName()
          Returns the name of this tag.
 byte[] getValue()
          Returns the offset in a four byte array.
 String toString()
          Returns the offset in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BytecodeOffsetTag

public BytecodeOffsetTag(int offset)
Constructs a tag from the index offset.

Method Detail

getName

public String getName()
Returns the name of this tag.

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