Class BslPreprocessingService

java.lang.Object
com.e1c.langtool.v8.dt.bsl.i18n.internal.loader.BslPreprocessingService
All Implemented Interfaces:
IBslLoadingPreprocessor

@LifecycleService(name="BslPreprocessingService") public class BslPreprocessingService extends Object implements IBslLoadingPreprocessor
BSL preprocessing service implementation.
  • Constructor Details

    • BslPreprocessingService

      public BslPreprocessingService()
  • Method Details

    • isFileCanBeProcessed

      public boolean isFileCanBeProcessed(org.eclipse.core.resources.IFile file)
      Description copied from interface: IBslLoadingPreprocessor
      Check if file can be processed by IBslLoadingPreprocessor implementation or not. Return true if this file can be processed by IBslLoadingPreprocessor implementation, false otherwise.
      Specified by:
      isFileCanBeProcessed in interface IBslLoadingPreprocessor
      Parameters:
      file - File to be checked.
      Returns:
      true if this file can be processed by this IBslLoadingPreprocessor implementation, false otherwise.
    • link

      @LifecycleParticipant(phase=LINKING) public void link()
    • processFile

      public InputStream processFile(org.eclipse.core.resources.IFile file, boolean force, InputStream originalStream)
      Description copied from interface: IBslLoadingPreprocessor
      Do actual processing of BSL file. Will return InputStream with processed file content. Can return originalStream if no processing required.
      Specified by:
      processFile in interface IBslLoadingPreprocessor
      Parameters:
      file - BSL file to be processed.
      originalStream - InputStream with original content of BSL file.
      Returns:
      InputStream with preprocessed BSL file content. If no processing required originalStream can be returned.