Class FunctionSTR2GO
java.lang.Object
com.igormaznitsa.jcp.expression.functions.AbstractFunction
com.igormaznitsa.jcp.expression.functions.FunctionSTR2GO
- All Implemented Interfaces:
ExpressionItem
The class implements escape function handler to escape strings to be used in Go.
-
Field Summary
FieldsFields inherited from class AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringexecuteStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines) ValueType[][]Get arrays of supported argument typesintgetArity()Get the function aritygetName()Get the function nameGet the function reference to be output for a help requestGet the result typeprivate static StringtoUnicode(char c) Methods inherited from class AbstractFunction
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toString
-
Field Details
-
ARG_TYPES
-
-
Constructor Details
-
FunctionSTR2GO
public FunctionSTR2GO()
-
-
Method Details
-
getName
Description copied from class:AbstractFunctionGet the function name- Specified by:
getNamein classAbstractFunction- Returns:
- the function name in lower case, must not be null
-
executeStrBool
-
toUnicode
-
escapeGo
-
getArity
public int getArity()Description copied from class:AbstractFunctionGet the function arity- Specified by:
getArityin classAbstractFunction- Returns:
- the function arity (zero or greater)
-
getAllowedArgumentTypes
Description copied from class:AbstractFunctionGet arrays of supported argument types- Specified by:
getAllowedArgumentTypesin classAbstractFunction- Returns:
- the array of argument type combinations allowed by the function handler, must not be null
-
getReference
Description copied from class:AbstractFunctionGet the function reference to be output for a help request- Specified by:
getReferencein classAbstractFunction- Returns:
- the function information as a String, must not be null
-
getResultType
Description copied from class:AbstractFunctionGet the result type- Specified by:
getResultTypein classAbstractFunction- Returns:
- the result type of the function, must not be null
-