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.Sectionof the Bsl documentation comment. Description contains differentsIDescriptionParts
- 
- 
Constructor SummaryConstructors Constructor Description Description(IDescriptionPart parent)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPart(DescriptionPart part)Adds newIDescriptionPartto the descriptionvoidaddParts(Collection<IDescriptionPart> parts)Adds newIDescriptionParts to the descriptionintgetLineNumber()Gets the line nubmer corresponding to part.intgetOffset()Gets offset of the begining part.IDescriptionPartgetParent()Gets the parent object.List<IDescriptionPart>getParts()GetsIDescriptionParts contain in descriptionbooleanmatch(int lineNumber, int offset)Checks that this description part corresponding to the concrete line number and offset
 
- 
- 
- 
Constructor Detail- 
Descriptionpublic Description(IDescriptionPart parent) Constructor. Empty description- Parameters:
- parent- the parent object, cannot be- null.
 
 
- 
 - 
Method Detail- 
getParentpublic IDescriptionPart getParent() Gets the parent object.- Specified by:
- getParentin interface- IDescriptionPart
- Returns:
- the parent object, can return nullif it is created separetly form parsing
 
 - 
addPartpublic void addPart(DescriptionPart part) Adds newIDescriptionPartto the description- Parameters:
- part- adding part, cannot be- null
 
 - 
addPartspublic void addParts(Collection<IDescriptionPart> parts) Adds newIDescriptionParts to the description- Parameters:
- parts- adding parts, cannot be- null
 
 - 
getPartspublic List<IDescriptionPart> getParts() GetsIDescriptionParts contain in description- Returns:
- parts in description, never null
 
 - 
getOffsetpublic int getOffset() Description copied from interface:IDescriptionPartGets offset of the begining part. Offset - local inline offset- Specified by:
- getOffsetin interface- IDescriptionPart
- Returns:
- offset of the begining part.
 
 - 
getLineNumberpublic int getLineNumber() Description copied from interface:IDescriptionPartGets 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:
- getLineNumberin interface- IDescriptionPart
- Returns:
- the line nubmer corresponding to part
 
 - 
matchpublic boolean match(int lineNumber, int offset)Description copied from interface:IDescriptionPartChecks that this description part corresponding to the concrete line number and offset- Specified by:
- matchin interface- IDescriptionPart
- Parameters:
- lineNumber- number of the documentation comment line
- offset- local offset on the comment line
- Returns:
- trueif this description part corresponding to the send line number and offset,- falseotherwise
 
 
- 
 
-