Class LineNumberTableAttribute

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.Attribute
proguard.classfile.attribute.LineNumberTableAttribute
All Implemented Interfaces:
Serializable, Processable

public class LineNumberTableAttribute extends Attribute
This Attribute represents a line number table attribute.
See Also:
  • Field Details

    • u2lineNumberTableLength

      public int u2lineNumberTableLength
    • lineNumberTable

      public LineNumberInfo[] lineNumberTable
  • Constructor Details

    • LineNumberTableAttribute

      public LineNumberTableAttribute()
      Creates an uninitialized LineNumberTableAttribute.
    • LineNumberTableAttribute

      public LineNumberTableAttribute(int u2attributeNameIndex, int u2lineNumberTableLength, LineNumberInfo[] lineNumberTable)
      Creates an initialized LineNumberTableAttribute.
  • Method Details

    • getLineNumber

      public int getLineNumber(int pc)
      Returns the line number corresponding to the given byte code program counter.
    • getSource

      public String getSource(int pc)
      Returns the source corresponding to the given byte code program counter.
    • getLineNumberInfo

      public LineNumberInfo getLineNumberInfo(int pc)
      Returns the line number info corresponding to the given byte code program counter.
    • getLowestLineNumber

      public int getLowestLineNumber()
      Returns the lowest line number with the default null source, or 0 if there aren't any such line numbers.
    • getHighestLineNumber

      public int getHighestLineNumber()
      Returns the highest line number with the default null source, or 0 if there aren't any such line numbers.
    • accept

      public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, AttributeVisitor attributeVisitor)
      Description copied from class: Attribute
      Accepts the given visitor in the context of the given code attribute.
      Overrides:
      accept in class Attribute
    • lineNumbersAccept

      public void lineNumbersAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberInfoVisitor lineNumberInfoVisitor)
      Applies the given visitor to all line numbers.