Class LeftOrRightFunctionModifier


  • public class LeftOrRightFunctionModifier
    extends FunctionModifier
    Convert left(string, count) --> substr(string, 1, count) or right(string, count) --> substr(string, -1 * count) - we lack a way to express a unary negation
    • Constructor Detail

      • LeftOrRightFunctionModifier

        public LeftOrRightFunctionModifier​(LanguageFactory langFactory)
    • Method Detail

      • translate

        public List<?> translate​(Function function)
        Description copied from class: FunctionModifier
        Return a List of translated parts (LanguageObjects and Objects), or null if this FunctionModifier wishes to rely on the default translation of the conversion visitor.
        Specified by:
        translate in class FunctionModifier
        Parameters:
        function - IFunction to be translated
        Returns:
        List of translated parts, or null