Class FunctionSTR2GO

  • All Implemented Interfaces:
    ExpressionItem

    public final class FunctionSTR2GO
    extends AbstractFunction
    The class implements escape function handler to escape strings to be used in Go.
    • Field Detail

      • ARG_TYPES

        private static final ValueType[][] ARG_TYPES
    • Constructor Detail

      • FunctionSTR2GO

        public FunctionSTR2GO()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: AbstractFunction
        Get the function name
        Specified by:
        getName in class AbstractFunction
        Returns:
        the function name in lower case, must not be null
      • toUnicode

        private static java.lang.String toUnicode​(char c)
      • escapeGo

        private static java.lang.String escapeGo​(java.lang.String value)
      • getArity

        public int getArity()
        Description copied from class: AbstractFunction
        Get the function arity
        Specified by:
        getArity in class AbstractFunction
        Returns:
        the function arity (zero or greater)
      • getReference

        public java.lang.String getReference()
        Description copied from class: AbstractFunction
        Get the function reference to be output for a help request
        Specified by:
        getReference in class AbstractFunction
        Returns:
        the function information as a String, must not be null