Class FullNameContentProcessor

java.lang.Object
com.e1c.langtool.v8.dt.bsl.stringliteral.AbstractStringLiteralLinesProcessor
com.e1c.langtool.v8.dt.bsl.stringliteral.FullNameContentProcessor
All Implemented Interfaces:
TypedStringLiteralContentProcessor

public class FullNameContentProcessor extends AbstractStringLiteralLinesProcessor
  • Constructor Details

    • FullNameContentProcessor

      public FullNameContentProcessor()
  • Method Details

    • isSupport

      public boolean isSupport(StringLiteral literal, Collection<LiteralType> types)
      Description copied from interface: TypedStringLiteralContentProcessor
      Checks if processor is support given literal and it's types.
      Parameters:
      literal - the literal
      types - the types to check
      Returns:
      true, if processor is support the literal
    • process

      public List<String> process(StringLiteral literal, Collection<LiteralType> types, IProjectTranslationProvider translationProvider, TranslateLanguage language, org.eclipse.xtext.util.CancelIndicator monitor)
      Description copied from interface: TypedStringLiteralContentProcessor
      Process string literal lines. Processor should not add quotes or | to the lines. Processor should avoid return different count of lines. However, if returned lines more than source, extra lines will be append with the same indentation as last line of source literal, if returned lines less, it will leave a blank space of reduced lines.
      Parameters:
      literal - the literal
      types - the types
      translationProvider - the translation provider
      language - the language
      monitor - the monitor
      Returns:
      the list of lines without quotes and | for multi-line