Class BslDocumentationComment.Section

    • Constructor Detail

      • Section

        public Section​(IDescriptionPart parent,
                       int lineNumber,
                       int offset,
                       int headerKeywordLength)
        Constructor.
        Parameters:
        parent - the parent object, cannot be null.
        lineNumber - number of line from the comment begining corresponding to the start line of the section
        offset - local line offset of the begining section on the line
        headerKeywordLength - length of the keyword of the section
      • Section

        public Section​(IDescriptionPart parent,
                       int lineNumber)
        Constructor. This constructor should be used if section description created programmatically
        Parameters:
        parent - the parent object, cannot be null.
        lineNumber - number of line from the comment begining corresponding to the start line of the section
    • Method Detail

      • getParent

        public IDescriptionPart getParent()
        Gets the parent object.
        Specified by:
        getParent in interface IDescriptionPart
        Returns:
        the parent object, can return null if it is created separetly form parsing
      • getLineNumber

        public int getLineNumber()
        Gets number of line from the comment begining corresponding to the start line of the section
        Specified by:
        getLineNumber in interface IDescriptionPart
        Returns:
        number of line from the comment begining corresponding to the start line of the section
      • getOffset

        public int getOffset()
        Gets local line offset of the begining section on the line
        Specified by:
        getOffset in interface IDescriptionPart
        Returns:
        local line offset of the begining section on the line, offset can be -1 if offset wasnot set
      • getHeaderKeywordLength

        public int getHeaderKeywordLength()
        Gets length of the keyword of the section
        Returns:
        llength of the keyword of the section, length can be -1 if length wasnot set
      • match

        public boolean match​(int lineNumber,
                             int offset)
        Description copied from interface: IDescriptionPart
        Checks that this description part corresponding to the concrete line number and offset
        Specified by:
        match in interface IDescriptionPart
        Parameters:
        lineNumber - number of the documentation comment line
        offset - local offset on the comment line
        Returns:
        true if this description part corresponding to the send line number and offset, false otherwise