Class ScopedVariableTranslationStorage

java.lang.Object
com.e1c.langtool.v8.dt.internal.translator.ScopedVariableTranslationStorage

public class ScopedVariableTranslationStorage extends Object
The Class for storing variable translation into variable name.
  • Constructor Details

    • ScopedVariableTranslationStorage

      public ScopedVariableTranslationStorage()
  • Method Details

    • putTranslation

      public void putTranslation(String translation, String variableName)
      Puts translation to store.
      Parameters:
      translation - the translation, cannot be null
      variableName - the variable name, cannot be null
    • getVariableNamesCount

      public int getVariableNamesCount(String translation, String excluded)
      Gets the variable names count.
      Parameters:
      translation - the translation, cannot be null
      excluded - excluding this name from the check, as it may appear multiple times, cannot be null
      Returns:
      the variable names count