Class BslDocumentationComment.Description
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.documentation.comment.BslDocumentationComment.Description
-
- All Implemented Interfaces:
IDescriptionPart
- Enclosing class:
- BslDocumentationComment
public static class BslDocumentationComment.Description extends Object implements IDescriptionPart
Class represent description of theBslDocumentationComment.Section
of the Bsl documentation comment. Description contains differentsIDescriptionPart
s
-
-
Constructor Summary
Constructors Constructor Description Description(IDescriptionPart parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPart(DescriptionPart part)
Adds newIDescriptionPart
to the descriptionvoid
addParts(Collection<IDescriptionPart> parts)
Adds newIDescriptionPart
s to the descriptionint
getLineNumber()
Gets the line nubmer corresponding to part.int
getOffset()
Gets offset of the begining part.IDescriptionPart
getParent()
Gets the parent object.List<IDescriptionPart>
getParts()
GetsIDescriptionPart
s contain in descriptionboolean
match(int lineNumber, int offset)
Checks that this description part corresponding to the concrete line number and offset
-
-
-
Constructor Detail
-
Description
public Description(IDescriptionPart parent)
Constructor. Empty description- Parameters:
parent
- the parent object, cannot benull
.
-
-
Method Detail
-
getParent
public IDescriptionPart getParent()
Gets the parent object.- Specified by:
getParent
in interfaceIDescriptionPart
- Returns:
- the parent object, can return
null
if it is created separetly form parsing
-
addPart
public void addPart(DescriptionPart part)
Adds newIDescriptionPart
to the description- Parameters:
part
- adding part, cannot benull
-
addParts
public void addParts(Collection<IDescriptionPart> parts)
Adds newIDescriptionPart
s to the description- Parameters:
parts
- adding parts, cannot benull
-
getParts
public List<IDescriptionPart> getParts()
GetsIDescriptionPart
s contain in description- Returns:
- parts in description, never
null
-
getOffset
public int getOffset()
Description copied from interface:IDescriptionPart
Gets offset of the begining part. Offset - local inline offset- Specified by:
getOffset
in interfaceIDescriptionPart
- Returns:
- offset of the begining part.
-
getLineNumber
public int getLineNumber()
Description copied from interface:IDescriptionPart
Gets the line nubmer corresponding to part. Numeration starts from 0 Line number - line number corresponding to the begining of the documentation comment. Each comment starts with line with number 0- Specified by:
getLineNumber
in interfaceIDescriptionPart
- Returns:
- the line nubmer corresponding to 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 interfaceIDescriptionPart
- Parameters:
lineNumber
- number of the documentation comment lineoffset
- local offset on the comment line- Returns:
true
if this description part corresponding to the send line number and offset,false
otherwise
-
-