in src/main/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java [246:313]
public Object computeValue(final EvalContext context) {
switch (functionCode) {
case Compiler.FUNCTION_LAST :
return functionLast(context);
case Compiler.FUNCTION_POSITION :
return functionPosition(context);
case Compiler.FUNCTION_COUNT :
return functionCount(context);
case Compiler.FUNCTION_LANG :
return functionLang(context);
case Compiler.FUNCTION_ID :
return functionID(context);
case Compiler.FUNCTION_LOCAL_NAME :
return functionLocalName(context);
case Compiler.FUNCTION_NAMESPACE_URI :
return functionNamespaceURI(context);
case Compiler.FUNCTION_NAME :
return functionName(context);
case Compiler.FUNCTION_STRING :
return functionString(context);
case Compiler.FUNCTION_CONCAT :
return functionConcat(context);
case Compiler.FUNCTION_STARTS_WITH :
return functionStartsWith(context);
case Compiler.FUNCTION_ENDS_WITH :
return functionEndsWith(context);
case Compiler.FUNCTION_CONTAINS :
return functionContains(context);
case Compiler.FUNCTION_SUBSTRING_BEFORE :
return functionSubstringBefore(context);
case Compiler.FUNCTION_SUBSTRING_AFTER :
return functionSubstringAfter(context);
case Compiler.FUNCTION_SUBSTRING :
return functionSubstring(context);
case Compiler.FUNCTION_STRING_LENGTH :
return functionStringLength(context);
case Compiler.FUNCTION_NORMALIZE_SPACE :
return functionNormalizeSpace(context);
case Compiler.FUNCTION_TRANSLATE :
return functionTranslate(context);
case Compiler.FUNCTION_BOOLEAN :
return functionBoolean(context);
case Compiler.FUNCTION_NOT :
return functionNot(context);
case Compiler.FUNCTION_TRUE :
return functionTrue(context);
case Compiler.FUNCTION_FALSE :
return functionFalse(context);
case Compiler.FUNCTION_NULL :
return functionNull(context);
case Compiler.FUNCTION_NUMBER :
return functionNumber(context);
case Compiler.FUNCTION_SUM :
return functionSum(context);
case Compiler.FUNCTION_FLOOR :
return functionFloor(context);
case Compiler.FUNCTION_CEILING :
return functionCeiling(context);
case Compiler.FUNCTION_ROUND :
return functionRound(context);
case Compiler.FUNCTION_KEY :
return functionKey(context);
case Compiler.FUNCTION_FORMAT_NUMBER :
return functionFormatNumber(context);
default:
return null;
}
}