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
public abstract class AbstractStrConverter extends AbstractFunction
The class is parent for converting classes.
-
-
Field Summary
Fields Modifier and Type Field Description private static ValueType[][]
ARG_TYPES
-
Fields inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, UID_COUNTER
-
-
Constructor Summary
Constructors Constructor Description AbstractStrConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Value
executeStr(PreprocessorContext context, Value stringToConvert)
ValueType[][]
getAllowedArgumentTypes()
Get arrays of supported argument typesint
getArity()
Get the function arity-
Methods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, getName, getReference, getResultType, toString
-
-
-
-
Field Detail
-
ARG_TYPES
private static final ValueType[][] ARG_TYPES
-
-
Method Detail
-
executeStr
public abstract Value executeStr(PreprocessorContext context, Value stringToConvert)
-
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
public final ValueType[][] 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
-
-