Class LinkPart
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
com._1c.g5.v8.dt.bsl.documentation.comment.LinkPart
- All Implemented Interfaces:
IDescriptionPart
Class represent
IDescriptionPart of Bsl documentation comment. It contains information about linking configuration object of method-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> Correspondence between reference to the object that can be used in documentation comment and their formsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> Correspondence between keywords of Bsl language properties of manager types container andEReferenceto the configuration object collectionstatic final Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> Correspondence between keywords in Russian of Bsl language properties of manager types container andEReferenceto the configuration object collectionstatic final Map<org.eclipse.emf.ecore.EReference,Collection<org.eclipse.emf.ecore.EStructuralFeature>> Correspondence between reference to the object that can be used in documentation comment and their sub objectsstatic final Set<org.eclipse.emf.ecore.EReference>Collection of the supportingEReferenceto the configuration object collection available for linkingstatic final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> Correspondence between reference to the object that can be used in documentation comment and their templates -
Constructor Summary
ConstructorsConstructorDescriptionLinkPart(IDescriptionPart parent, int lineNumber, int offset, String initialContent, String linkText) Constructor.LinkPart(IDescriptionPart parent, int lineNumber, String linkText) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetActualObjectForPart(int partNumber, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject contextObject, IV8ProjectManager v8ProjectManager, BmOperationContext typeComputationContext) Try to get actual configuration object or method corresponding to the part of the linking contentgetExportedMethods(org.eclipse.emf.ecore.EObject actualMdObject, org.eclipse.emf.ecore.EStructuralFeature moduleFeature, IV8ProjectManager v8ProjectManager, BmOperationContext typeComputationContext) Gets full content of theIDescriptionPartGets content of the linkintGets offset on the line of the begining link text contentMap<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectFirstSegment(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the configuration objectMap<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectManagers(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the managers type collectionGets content of the link devided by the '.' and start offset of each part on the comment linebooleanmatch(int lineNumber, int offset) Checks that this description part corresponding to the concrete line number and offsetvoidsetLinkText(String linkText) Sets content of the linkvoidsetLinkTextOffset(int offset) Sets offset on the line of the begining link text contentMethods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
getLineNumber, getOffset, getParent
-
Field Details
-
MD_OBJECT_MANAGERS
Correspondence between keywords of Bsl language properties of manager types container andEReferenceto the configuration object collection -
MD_OBJECT_MANAGERS_RU
public static final Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> MD_OBJECT_MANAGERS_RUCorrespondence between keywords in Russian of Bsl language properties of manager types container andEReferenceto the configuration object collection -
SUPPORTED_MD_OBJECT_REFERENCES
Collection of the supportingEReferenceto the configuration object collection available for linking -
SUBOBJECT_FEATURES
public static final Map<org.eclipse.emf.ecore.EReference,Collection<org.eclipse.emf.ecore.EStructuralFeature>> SUBOBJECT_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their sub objects -
FORMS_FEATURES
public static final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> FORMS_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their forms -
TEMPLATES_FEATURES
public static final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> TEMPLATES_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their templates -
LINK_PART_FORM_SEGMENT
- See Also:
-
LINK_PART_FORM_SEGMENT_RU
- See Also:
-
LINK_PART_FORM_ITEM_SEGMENT
- See Also:
-
LINK_PART_FORM_ITEM_SEGMENT_RU
- See Also:
-
LINK_PART_TEMPLATE_SEGMENT
- See Also:
-
LINK_PART_TEMPLATE_SEGMENT_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_TABLE
- See Also:
-
EXTERNAL_DATA_SOURCE_TABLE_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_CUBE
- See Also:
-
EXTERNAL_DATA_SOURCE_CUBE_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_DIMENSION_TABLE
- See Also:
-
EXTERNAL_DATA_SOURCE_DIMENSION_TABLE_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_TABLES
- See Also:
-
EXTERNAL_DATA_SOURCE_TABLES_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_CUBES
- See Also:
-
EXTERNAL_DATA_SOURCE_CUBES_RU
- See Also:
-
EXTERNAL_DATA_SOURCE_DIMENSION_TABLES
- See Also:
-
EXTERNAL_DATA_SOURCE_DIMENSION_TABLES_RU
- See Also:
-
-
Constructor Details
-
LinkPart
public LinkPart(IDescriptionPart parent, int lineNumber, int offset, String initialContent, String linkText) Constructor.- Parameters:
parent- the parent object, cannot benull.lineNumber- line nubmer corresponding to partoffset- offset of the begining partinitialContent- full content of theIDescriptionPart, cannot benulllinkText- content of the link, cannot benull
-
LinkPart
Constructor.- Parameters:
parent- the parent object, cannot benull.lineNumber- line nubmer corresponding to partlinkText- content of the link, cannot benull
-
-
Method Details
-
getLinkText
Gets content of the link- Returns:
- content of the link, never
null
-
setLinkText
Sets content of the link- Parameters:
linkText- content of the link, cannot benull
-
setLinkTextOffset
public void setLinkTextOffset(int offset) Sets offset on the line of the begining link text content- Parameters:
offset- offset on the line of the begining link text content
-
getLinkTextOffset
public int getLinkTextOffset()Gets offset on the line of the begining link text content- Returns:
- offset on the line of the begining link text content
-
getPartsWithOffset
Gets content of the link devided by the '.' and start offset of each part on the comment line- Returns:
- collection of the parts of link content devided by '.' with their line offsets, never
null
-
getInitialContent
Gets full content of theIDescriptionPart- Returns:
- full content of the
IDescriptionPart, can benullif content wasnot set
-
match
public boolean match(int lineNumber, int offset) Description copied from interface:IDescriptionPartChecks that this description part corresponding to the concrete line number and offset- Parameters:
lineNumber- number of the documentation comment lineoffset- local offset on the comment line- Returns:
trueif this description part corresponding to the send line number and offset,falseotherwise
-
getMdObjectFirstSegment
public Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectFirstSegment(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the configuration object- Parameters:
isRu-trueif the first segment should be in Russian,falsein English- Returns:
- map with the first segments and
EReferenceto the object collection, nevernull
-
getMdObjectManagers
public Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectManagers(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the managers type collection- Parameters:
isRu-trueif the first segment should be in Russian,falsein English- Returns:
- map with the first segments and
EReferenceto the managers type collection, nevernull
-
getActualObjectForPart
public org.eclipse.emf.ecore.EObject getActualObjectForPart(int partNumber, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject contextObject, IV8ProjectManager v8ProjectManager, BmOperationContext typeComputationContext) Try to get actual configuration object or method corresponding to the part of the linking content- Parameters:
partNumber- number of the linking text part for getting real object, seegetPartsWithOffset(), range 0..getPartsWithOffset().size()scopeProvider- actualIScopeProvider, cannot benullcontextObject- actual object for resolving, cannot benullv8ProjectManager-IV8ProjectManagerfor gettingIV8ProjectbyEObject, cannot benulltypeComputationContext- Type system computation context. May not benull- Returns:
- actual configuration object or method corresponding to the part of the linking content, can be
nullif object cannot be found
-
getExportedMethods
public List<Method> getExportedMethods(org.eclipse.emf.ecore.EObject actualMdObject, org.eclipse.emf.ecore.EStructuralFeature moduleFeature, IV8ProjectManager v8ProjectManager, BmOperationContext typeComputationContext) - Parameters:
actualMdObject- for getting module withMethods, cannot benullmoduleFeature-EStructuralFeatureof the module for gettingMethods, cannot benullv8ProjectManager-IV8ProjectManagerfor gettingIV8ProjectbyEObject, cannot benulltypeComputationContext- Type system computation context. May not benull- Returns:
Methods of module fromactualMdObjectand itsmoduleFeature, nevernull
-