Class TypeSection.FieldDefinition

    • Constructor Detail

      • FieldDefinition

        public FieldDefinition​(IDescriptionPart parent)
        Constructor.
        Parameters:
        parent - the parent object, cannot be null.
      • FieldDefinition

        public FieldDefinition​(IDescriptionPart parent,
                               String name)
        Constructor. Creates field with concrete name
        Parameters:
        parent - the parent object, cannot be null.
        name - name of the creating field, cannot be null
    • 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
      • getName

        public String getName()
        Gets name of the field
        Returns:
        name of the field, never null
      • setName

        public void setName​(String name)
        Sets name of the field
        Parameters:
        name - name of the field, cannot be null
      • setNameOffset

        public void setNameOffset​(int offset)
        Sets offset on the line of begining field name
        Parameters:
        offset - on the line of begining field name
      • getNameOffset

        public int getNameOffset()
        Gets offset on the line of begining field name
        Returns:
        offset on the line of begining field name
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Sets line number of starting field definition
        Parameters:
        lineNumber - line number of starting field definition, line number compute from the start comment section
      • getLineNumber

        public int getLineNumber()
        Gets line number of starting field definition
        Specified by:
        getLineNumber in interface IDescriptionPart
        Returns:
        lineNumber line number of starting field definition, line number compute from the start comment section
      • getOffset

        public int getOffset()
        Description copied from interface: IDescriptionPart
        Gets offset of the begining part. Offset - local inline offset
        Specified by:
        getOffset in interface IDescriptionPart
        Returns:
        offset of the begining part.
      • 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