Class DescriptionPart
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
- All Implemented Interfaces:
IDescriptionPart
Abstract implementation of
IDescriptionPart, provides logic for keeping offset and line number-
Constructor Summary
ConstructorsConstructorDescriptionDescriptionPart(IDescriptionPart parent, int lineNumber, int offset) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintGets the line nubmer corresponding to part.intGets offset of the begining part.Gets the parent object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.bsl.documentation.comment.IDescriptionPart
match
-
Constructor Details
-
DescriptionPart
Constructor.- Parameters:
parent- the parent object, cannot benull.lineNumber- line nubmer corresponding to partoffset- offset of the begining part
-
-
Method Details
-
getParent
Gets the parent object.- Specified by:
getParentin interfaceIDescriptionPart- Returns:
- the parent object, can return
nullif it is created separetly form parsing
-
getOffset
public int getOffset()Description copied from interface:IDescriptionPartGets offset of the begining part. Offset - local inline offset- Specified by:
getOffsetin interfaceIDescriptionPart- Returns:
- offset of the begining part.
-
getLineNumber
public 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 interfaceIDescriptionPart- Returns:
- the line nubmer corresponding to part
-