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
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, FUNCTION_NAME_MAP, UID_COUNTER
-
-
Constructor Summary
Constructors Constructor Description AbstractStrConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ValueexecuteStr(PreprocessorContext context, Value stringToConvert)ValueType[][]getAllowedArgumentTypes()Get arrays of supported argument typesintgetArity()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:AbstractFunctionGet the function arity- Specified by:
getArityin classAbstractFunction- Returns:
- the function arity (zero or greater)
-
getAllowedArgumentTypes
@MustNotContainNull public final ValueType[][] 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
-
-