Class TypeSection.LinkContainsTypeDefinition
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.documentation.comment.TypeSection.TypeDefinition
-
- com._1c.g5.v8.dt.bsl.documentation.comment.TypeSection.LinkContainsTypeDefinition
-
- All Implemented Interfaces:
IDescriptionPart
- Enclosing class:
- TypeSection
public static class TypeSection.LinkContainsTypeDefinition extends TypeSection.TypeDefinition
Implementation ofTypeSection.TypeDefinition
which containsLinkPart
to the element for getting types for element collection.
-
-
Constructor Summary
Constructors Constructor Description LinkContainsTypeDefinition(IDescriptionPart parent, LinkPart link)
Constructor for link type definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContainType(TypeSection.TypeDefinition containType)
AddsTypeSection.TypeDefinition
of type that should be contains as element of collection for this typeList<TypeSection.TypeDefinition>
getContainTypes()
List<TypeSection.FieldDefinition>
getFieldDefinitionExtension()
GetsTypeSection.FieldDefinition
s of extra fields of this typeint
getLineNumber()
Gets line number of starting type definitionLinkPart
getLink()
Gets containingLinkPart
int
getOffset()
Gets offset of the begining part.boolean
match(int lineNumber, int offset)
Checks that this description part corresponding to the concrete line number and offsetvoid
setTypeName(String typeName)
Sets type name of the definition type-
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.TypeSection.TypeDefinition
getLinkToExtensionFields, getNameOffset, getParent, getTypeName, setLineNumber, setLinkToExtensionFields, setNameOffset
-
-
-
-
Constructor Detail
-
LinkContainsTypeDefinition
public LinkContainsTypeDefinition(IDescriptionPart parent, LinkPart link)
Constructor for link type definition.- Parameters:
parent
- the parent object, cannot benull
.link
- assosiationLinkPart
, cannot benull
-
-
Method Detail
-
setTypeName
public void setTypeName(String typeName)
Description copied from class:TypeSection.TypeDefinition
Sets type name of the definition type- Overrides:
setTypeName
in classTypeSection.TypeDefinition
- Parameters:
typeName
- type name of the definition type, cannot benull
-
addContainType
public void addContainType(TypeSection.TypeDefinition containType)
Description copied from class:TypeSection.TypeDefinition
AddsTypeSection.TypeDefinition
of type that should be contains as element of collection for this type- Overrides:
addContainType
in classTypeSection.TypeDefinition
- Parameters:
containType
- type that should be contains as element of collection for this type, cannot benull
-
getContainTypes
public List<TypeSection.TypeDefinition> getContainTypes()
- Overrides:
getContainTypes
in classTypeSection.TypeDefinition
-
getFieldDefinitionExtension
public List<TypeSection.FieldDefinition> getFieldDefinitionExtension()
Description copied from class:TypeSection.TypeDefinition
GetsTypeSection.FieldDefinition
s of extra fields of this type- Overrides:
getFieldDefinitionExtension
in classTypeSection.TypeDefinition
- Returns:
TypeSection.FieldDefinition
s of extra fields of this type, nevernull
-
getLineNumber
public int getLineNumber()
Description copied from class:TypeSection.TypeDefinition
Gets line number of starting type definition- Specified by:
getLineNumber
in interfaceIDescriptionPart
- Overrides:
getLineNumber
in classTypeSection.TypeDefinition
- Returns:
- lineNumber line number of starting type 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 interfaceIDescriptionPart
- Overrides:
getOffset
in classTypeSection.TypeDefinition
- 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 interfaceIDescriptionPart
- Overrides:
match
in classTypeSection.TypeDefinition
- 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
-
-