Class FunctionTRIMLINES
- java.lang.Object
-
- com.igormaznitsa.jcp.expression.functions.AbstractFunction
-
- com.igormaznitsa.jcp.expression.functions.AbstractStrConverter
-
- com.igormaznitsa.jcp.expression.functions.FunctionTRIMLINES
-
- All Implemented Interfaces:
ExpressionItem
public final class FunctionTRIMLINES extends AbstractStrConverter
The class implements the TRIMLINES function handler
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER
-
-
Constructor Summary
Constructors Constructor Description FunctionTRIMLINES()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueexecuteStr(PreprocessorContext context, Value value)java.lang.StringgetName()Get the function namejava.lang.StringgetReference()Get the function reference to be output for a help requestValueTypegetResultType()Get the result type-
Methods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractStrConverter
getAllowedArgumentTypes, getArity
-
Methods inherited from class com.igormaznitsa.jcp.expression.functions.AbstractFunction
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:AbstractFunctionGet the function name- Specified by:
getNamein classAbstractFunction- Returns:
- the function name in lower case, must not be null
-
executeStr
public Value executeStr(PreprocessorContext context, Value value)
- Specified by:
executeStrin classAbstractStrConverter
-
getReference
public java.lang.String 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
public ValueType getResultType()
Description copied from class:AbstractFunctionGet the result type- Specified by:
getResultTypein classAbstractFunction- Returns:
- the result type of the function, must not be null
-
-