Class DecompileResult.MemberSpan

  • Direct Known Subclasses:
    DecompileResult.MethodSpan
    Enclosing class:
    DecompileResult

    public static class DecompileResult.MemberSpan
    extends Object
    The 1-based first/last line of a member's full text in the decompiled source - annotations and signature through the closing brace.
    • Method Detail

      • getStartLine

        public int getStartLine()
        Returns:
        the start line
      • getEndLine

        public int getEndLine()
        Returns:
        the end line
      • contains

        public boolean contains​(int line)
        Checks whether a source line falls within this span.
        Parameters:
        line - the 1-based line number
        Returns:
        true if the line lies within the span, inclusive