Class ScopedVariableTranslationModuleStorage

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

public class ScopedVariableTranslationModuleStorage extends Object
The Class for storing variable translations into method.
  • Constructor Details

    • ScopedVariableTranslationModuleStorage

      public ScopedVariableTranslationModuleStorage()
  • Method Details

    • putTranslation

      public void putTranslation(String methodName, String translation, String variableName)
      Puts translation.
      Parameters:
      methodName - the method name, cannot be null
      translation - the translation, cannot be null
      variableName - the variable name, cannot be null
    • hasMultipleTranslation

      public boolean hasMultipleTranslation(String methodName, String translation, String excluded)
      Checks for multiple translation.
      Parameters:
      methodName - the method name, cannot be null
      translation - the translation, cannot be null
      excluded - excluding this name from the check, as it may appear multiple times, cannot be null
      Returns:
      true, if storage has multiple variable names for translation