Class AbstractBslCommentTextProcessor
java.lang.Object
com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
com.e1c.langtool.v8.dt.bsl.comment.DocCommentCollector
com.e1c.langtool.v8.dt.bsl.translator.AbstractBslCommentTextProcessor
- All Implemented Interfaces:
FeatureValueCollector,IBasicProcessor
- Direct Known Subclasses:
BslCommentTextProcessor,ExternalDocCommentFieldProcessor
Abstract text processor for Documentation comment model.
Computes
derived property cache for fields that linked to return type properties.-
Nested Class Summary
Nested classes/interfaces inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
DocCommentProcessor.Parent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.eclipse.xtext.nodemodel.INode>The list of nodes of current doc-comment.protected final MethodThe method of current doc-comment.protected final Modulethe module of current doc-comment.protected final IProjectTranslationProviderFields inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentCollector
featureKeyProvider, typeComputationContextFields inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
monitor, rootObject -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBslCommentTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, IDescriptionPart rootObject, List<org.eclipse.xtext.nodemodel.INode> lines, ICollectingParameters parameters, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, Method method, BmOperationContext typeComputationContext) Instantiates a new abstract bsl comment text processor.protectedAbstractBslCommentTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, IDescriptionPart rootObject, List<org.eclipse.xtext.nodemodel.INode> lines, ICollectingParameters parameters, org.eclipse.emf.ecore.EObject context, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, BmOperationContext typeComputationContext, Method method) Instantiates a new abstract bsl comment text processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCompute derived property cache for the field definition.Methods inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentCollector
create, doProcess, doProcess, doProcess, getFieldProperty, getFieldPropertyByOrder, getFunctionReturnTypeFieldOrder, getTypeComputationContext, isComputedValue, isRealLink, isSkipTextPart, setAddActionMethods inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
isCanceled, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.IBasicProcessor
isCanceled, process
-
Field Details
-
module
the module of current doc-comment. -
method
The method of current doc-comment. -
lines
The list of nodes of current doc-comment. -
translationProvider
-
eObjectReplaceProvider
-
-
Constructor Details
-
AbstractBslCommentTextProcessor
protected AbstractBslCommentTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, IDescriptionPart rootObject, List<org.eclipse.xtext.nodemodel.INode> lines, ICollectingParameters parameters, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, Method method, BmOperationContext typeComputationContext) Instantiates a new abstract bsl comment text processor.- Parameters:
file- the file of module, cannot benull.featureKeyPreffix- the feature key preffix, cannot benull.rootObject- the root object of doc-comment, cannot benull.lines- the list of nodes, cannot benull.parameters- the parameters collecting parameters, cannot benull.translationProvider- the translation provider, cannot benull.eObjectReplaceProvider- theEObjectreplace provider, cannot benull.method- the method of the doc-comment, cannot benull.typeComputationContext- the BM operation type computation context, cannot be {@code null
-
AbstractBslCommentTextProcessor
protected AbstractBslCommentTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, IDescriptionPart rootObject, List<org.eclipse.xtext.nodemodel.INode> lines, ICollectingParameters parameters, org.eclipse.emf.ecore.EObject context, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, BmOperationContext typeComputationContext, Method method) Instantiates a new abstract bsl comment text processor.- Parameters:
file- the file of module, cannot benull.featureKeyPreffix- the feature key preffix, cannot benull.rootObject- the root object of doc-comment, cannot benull.lines- the list of nodes, cannot benull.parameters- the parameters collecting parameters, cannot benull.context- the context object, cannot benull.translationProvider- the translation provider, cannot benull.eObjectReplaceProvider- theEObjectreplace provider, cannot benull.typeComputationContext- the BM operation type computation context, cannot benullmethod- the method, can benull
-
-
Method Details
-
computeDerivedPropertyCache
protected void computeDerivedPropertyCache(DocCommentProcessor.Parent parent, TypeSection.FieldDefinition object) Compute derived property cache for the field definition. It compute and put cache intotranslator cachesystem.- Parameters:
parent- the parent doc-comment object, cannot benull.object- the field definition object, cannot benull.
-