Class BslCommentClearableTextProcessor
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
com.e1c.langtool.v8.dt.bsl.translator.BslCommentTextProcessor
com.e1c.langtool.v8.dt.bsl.translator.BslCommentClearableTextProcessor
- All Implemented Interfaces:
FeatureValueCollector,IBasicProcessor
Clearing comments that have no translation.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
DocCommentProcessor.Parent -
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.bsl.translator.BslCommentTextProcessor
contextFields inherited from class com.e1c.langtool.v8.dt.bsl.translator.AbstractBslCommentTextProcessor
eObjectReplaceProvider, lines, method, module, translationProviderFields inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentCollector
typeComputationContextFields inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentProcessor
monitor, rootObject -
Constructor Summary
ConstructorsConstructorDescriptionBslCommentClearableTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, BslDocumentationComment comment, List<org.eclipse.xtext.nodemodel.INode> lines, org.eclipse.text.edits.MultiTextEdit edit, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, TranslatorProperties translatorProperties, BslTranslationLogger problemLogger, Method method, BmOperationContext typeComputationContext, DocCommentKeyComputer keyComputer, ITranslationFeatureKeyProvider featureKeyProvider, IResourceLookup resourceLookup, IV8ProjectManager v8ProjectManager, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Instantiates a new bsl comment clearable text processor.BslCommentClearableTextProcessor(org.eclipse.core.resources.IFile file, org.eclipse.emf.ecore.EObject context, FeatureKey featureKeyPreffix, BslDocumentationComment comment, List<org.eclipse.xtext.nodemodel.INode> lines, org.eclipse.text.edits.MultiTextEdit edit, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, TranslatorProperties translatorProperties, BslTranslationLogger problemLogger, BmOperationContext typeComputationContext, DocCommentKeyComputer keyComputer, ITranslationFeatureKeyProvider featureKeyProvider, IResourceLookup resourceLookup, IV8ProjectManager v8ProjectManager, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Instantiates a new bsl comment clearable text processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> voiddoProcess(DocCommentProcessor.Parent parent, T object, Class<T> clazz) Processes concrete object of Bsl commentprotected voidDo process translatable.protected booleanisRealLink(LinkPart link) protected voidreplaceLinkPart(LinkPart link) Replaces link part.protected voidreplaceTypes(TypeSection.TypeDefinition typeDef) Replaces types.protected voidtranslateDocComment(BslDocumentationComment.Description object, String translation, boolean methodDescription) Translate doc comment.Methods inherited from class com.e1c.langtool.v8.dt.bsl.translator.BslCommentTextProcessor
addReplace, doProcessTranslatable, isMethodDescription, translateTagDescriptionMethods inherited from class com.e1c.langtool.v8.dt.bsl.translator.AbstractBslCommentTextProcessor
computeDerivedPropertyCacheMethods inherited from class com.e1c.langtool.v8.dt.bsl.comment.DocCommentCollector
create, doProcess, doProcess, getFieldProperty, getFieldPropertyByOrder, getFunctionReturnTypeFieldOrder, getTypeComputationContext, isComputedValue, 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
-
Constructor Details
-
BslCommentClearableTextProcessor
public BslCommentClearableTextProcessor(org.eclipse.core.resources.IFile file, FeatureKey featureKeyPreffix, BslDocumentationComment comment, List<org.eclipse.xtext.nodemodel.INode> lines, org.eclipse.text.edits.MultiTextEdit edit, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, TranslatorProperties translatorProperties, BslTranslationLogger problemLogger, Method method, BmOperationContext typeComputationContext, DocCommentKeyComputer keyComputer, ITranslationFeatureKeyProvider featureKeyProvider, IResourceLookup resourceLookup, IV8ProjectManager v8ProjectManager, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Instantiates a new bsl comment clearable text processor.- Parameters:
file- the file of the module, cannot benull.featureKeyPreffix- the feature key prefix, cannot benull.comment- the root documentation comment model object, cannot benull.lines- the lines of the doc-comment, cannot benull.edit- the edits that will be append by translator changes, cannot benull.translationProvider- the translation provider, cannot benull.eObjectReplaceProvider- the e object replace provider, cannot benull.translatorProperties- the translator properties, cannot benull.problemLogger- the translation problem logger, can benull.method- the method of doc-comment, cannot benull.typeComputationContext- the BM operation context for the type computation process, cannot benull.keyComputer- the DocCommentKeyComputer, cannot benull.featureKeyProvider- the ITranslationFeatureKeyProvider, cannot benull.resourceLookup- the IResourceLookup, cannot benull.v8ProjectManager- the IV8ProjectManager, cannot benull.scopeProvider- the IScopeProvider, cannot benull.
-
BslCommentClearableTextProcessor
public BslCommentClearableTextProcessor(org.eclipse.core.resources.IFile file, org.eclipse.emf.ecore.EObject context, FeatureKey featureKeyPreffix, BslDocumentationComment comment, List<org.eclipse.xtext.nodemodel.INode> lines, org.eclipse.text.edits.MultiTextEdit edit, IProjectTranslationProvider translationProvider, Function<org.eclipse.emf.ecore.EObject, String> eObjectReplaceProvider, TranslatorProperties translatorProperties, BslTranslationLogger problemLogger, BmOperationContext typeComputationContext, DocCommentKeyComputer keyComputer, ITranslationFeatureKeyProvider featureKeyProvider, IResourceLookup resourceLookup, IV8ProjectManager v8ProjectManager, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Instantiates a new bsl comment clearable text processor.- Parameters:
file- the file of the module, cannot benull.context- the contextfeatureKeyPreffix- the feature key prefix, cannot benull.comment- the root documentation comment model object, cannot benull.lines- the lines of the doc-comment, cannot benull.edit- the edits that will be append by translator changes, cannot benull.translationProvider- the translation provider, cannot benull.eObjectReplaceProvider- the e object replace provider, cannot benull.translatorProperties- the translator properties, cannot benull.problemLogger- the translation problem logger, can benull.typeComputationContext- the BM operation context for the type computation process, cannot benull.keyComputer- the DocCommentKeyComputer, cannot benull.featureKeyProvider- the ITranslationFeatureKeyProvider, cannot benull.resourceLookup- the IResourceLookup, cannot benull.v8ProjectManager- the IV8ProjectManager, cannot benull.scopeProvider- the IScopeProvider, cannot benull.
-
-
Method Details
-
doProcess
Description copied from class:DocCommentProcessorProcesses concrete object of Bsl comment- Overrides:
doProcessin classBslCommentTextProcessorobject- processing object, can't benull
-
doProcessTranslatable
Description copied from class:BslCommentTextProcessorDo process translatable.- Overrides:
doProcessTranslatablein classBslCommentTextProcessor- Parameters:
object- the object, cannot benull.fv- the feature value, cannot benull.
-
replaceLinkPart
Description copied from class:BslCommentTextProcessorReplaces link part.- Overrides:
replaceLinkPartin classBslCommentTextProcessor- Parameters:
link- the link, can benull.
-
isRealLink
- Overrides:
isRealLinkin classDocCommentCollector
-
translateDocComment
protected void translateDocComment(BslDocumentationComment.Description object, String translation, boolean methodDescription) Description copied from class:BslCommentTextProcessorTranslate doc comment.- Overrides:
translateDocCommentin classBslCommentTextProcessor- Parameters:
object- the object, cannot benull.translation- the translation, cannot benull.methodDescription- the method description
-
replaceTypes
Description copied from class:BslCommentTextProcessorReplaces types.- Overrides:
replaceTypesin classBslCommentTextProcessor- Parameters:
typeDef- the type definition, cannot benull.
-