Class AbstractStrConverter
java.lang.Object
com.igormaznitsa.jcp.expression.functions.AbstractFunction
com.igormaznitsa.jcp.expression.functions.AbstractStrConverter
- All Implemented Interfaces:
ExpressionItem
- Direct Known Subclasses:
FunctionSTR2CSV
,FunctionSTR2INT
,FunctionSTR2JS
,FunctionSTR2JSON
,FunctionSTR2WEB
,FunctionSTR2XML
,FunctionTRIMLINES
The class is parent for converting classes.
-
Field Summary
FieldsFields inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Value
executeStr
(PreprocessorContext context, Value stringToConvert) final ValueType[][]
Get arrays of supported argument typesfinal int
getArity()
Get the function arityMethods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, getName, getReference, getResultType, toString
-
Field Details
-
ARG_TYPES
-
-
Constructor Details
-
AbstractStrConverter
public AbstractStrConverter()
-
-
Method Details
-
executeStr
-
getArity
public final int getArity()Description copied from class:AbstractFunction
Get the function arity- Specified by:
getArity
in classAbstractFunction
- Returns:
- the function arity (zero or greater)
-
getAllowedArgumentTypes
Description copied from class:AbstractFunction
Get arrays of supported argument types- Specified by:
getAllowedArgumentTypes
in classAbstractFunction
- Returns:
- the array of argument type combinations allowed by the function handler, must not be null
-