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
        function - IFunction to be translated
        List of translated parts, or null