Class ImmutableLineNumber

java.lang.Object
org.jf.dexlib2.immutable.debug.ImmutableDebugItem
org.jf.dexlib2.immutable.debug.ImmutableLineNumber
All Implemented Interfaces:
DebugItem, LineNumber

public class ImmutableLineNumber extends ImmutableDebugItem implements LineNumber
  • Field Details

    • lineNumber

      protected final int lineNumber
  • Constructor Details

    • ImmutableLineNumber

      public ImmutableLineNumber(int codeAddress, int lineNumber)
  • Method Details

    • of

      @Nonnull public static ImmutableLineNumber of(@Nonnull LineNumber lineNumber)
    • getLineNumber

      public int getLineNumber()
      Description copied from interface: LineNumber
      The line number associated with this code address. This value should be treated as an unsigned integer, with negative values indicating a value > 2^31, using the usual two's complement semantics.
      Specified by:
      getLineNumber in interface LineNumber
      Returns:
      The line number associated with this code address.
    • getDebugItemType

      public int getDebugItemType()
      Description copied from interface: DebugItem
      The type of this debug item. The returned integer will be one of the DebugItemType.* constants.
      Specified by:
      getDebugItemType in interface DebugItem
      Returns:
      The type of this debug item.