/* */ package org.jaxen;
/* */
/* */ import org.jaxen.function.
BooleanFunction;
/* */ import org.jaxen.function.
CeilingFunction;
/* */ import org.jaxen.function.
ConcatFunction;
/* */ import org.jaxen.function.
ContainsFunction;
/* */ import org.jaxen.function.
CountFunction;
/* */ import org.jaxen.function.
FalseFunction;
/* */ import org.jaxen.function.
FloorFunction;
/* */ import org.jaxen.function.
IdFunction;
/* */ import org.jaxen.function.
LangFunction;
/* */ import org.jaxen.function.
LastFunction;
/* */ import org.jaxen.function.
LocalNameFunction;
/* */ import org.jaxen.function.
NameFunction;
/* */ import org.jaxen.function.
NamespaceUriFunction;
/* */ import org.jaxen.function.
NormalizeSpaceFunction;
/* */ import org.jaxen.function.
NotFunction;
/* */ import org.jaxen.function.
NumberFunction;
/* */ import org.jaxen.function.
PositionFunction;
/* */ import org.jaxen.function.
RoundFunction;
/* */ import org.jaxen.function.
StartsWithFunction;
/* */ import org.jaxen.function.
StringFunction;
/* */ import org.jaxen.function.
StringLengthFunction;
/* */ import org.jaxen.function.
SubstringAfterFunction;
/* */ import org.jaxen.function.
SubstringBeforeFunction;
/* */ import org.jaxen.function.
SubstringFunction;
/* */ import org.jaxen.function.
SumFunction;
/* */ import org.jaxen.function.
TranslateFunction;
/* */ import org.jaxen.function.
TrueFunction;
/* */ import org.jaxen.function.ext.
EndsWithFunction;
/* */ import org.jaxen.function.ext.
EvaluateFunction;
/* */ import org.jaxen.function.ext.
LowerFunction;
/* */ import org.jaxen.function.ext.
UpperFunction;
/* */ import org.jaxen.function.xslt.
DocumentFunction;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
XPathFunctionContext
/* */ extends
SimpleFunctionContext
/* */ {
/* 121 */ private static
XPathFunctionContext instance = new
XPathFunctionContext();
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static
FunctionContext getInstance() {
/* 129 */ return
instance;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public
XPathFunctionContext() {
/* 137 */ this(true);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
XPathFunctionContext(boolean
includeExtensionFunctions) {
/* 148 */
registerXPathFunctions();
/* 149 */ if (
includeExtensionFunctions) {
/* 150 */
registerXSLTFunctions();
/* 151 */
registerExtensionFunctions();
/* */ }
/* */ }
/* */
/* */
/* */ private void
registerXPathFunctions() {
/* 157 */
registerFunction(null, "boolean", (
Function)new
BooleanFunction());
/* */
/* */
/* */
/* 161 */
registerFunction(null, "ceiling", (
Function)new
CeilingFunction());
/* */
/* */
/* */
/* 165 */
registerFunction(null, "concat", (
Function)new
ConcatFunction());
/* */
/* */
/* */
/* 169 */
registerFunction(null, "contains", (
Function)new
ContainsFunction());
/* */
/* */
/* */
/* 173 */
registerFunction(null, "count", (
Function)new
CountFunction());
/* */
/* */
/* */
/* 177 */
registerFunction(null, "false", (
Function)new
FalseFunction());
/* */
/* */
/* */
/* 181 */
registerFunction(null, "floor", (
Function)new
FloorFunction());
/* */
/* */
/* */
/* 185 */
registerFunction(null, "id", (
Function)new
IdFunction());
/* */
/* */
/* */
/* 189 */
registerFunction(null, "lang", (
Function)new
LangFunction());
/* */
/* */
/* */
/* 193 */
registerFunction(null, "last", (
Function)new
LastFunction());
/* */
/* */
/* */
/* 197 */
registerFunction(null, "local-name", (
Function)new
LocalNameFunction());
/* */
/* */
/* */
/* 201 */
registerFunction(null, "name", (
Function)new
NameFunction());
/* */
/* */
/* */
/* 205 */
registerFunction(null, "namespace-uri", (
Function)new
NamespaceUriFunction());
/* */
/* */
/* */
/* 209 */
registerFunction(null, "normalize-space", (
Function)new
NormalizeSpaceFunction());
/* */
/* */
/* */
/* 213 */
registerFunction(null, "not", (
Function)new
NotFunction());
/* */
/* */
/* */
/* 217 */
registerFunction(null, "number", (
Function)new
NumberFunction());
/* */
/* */
/* */
/* 221 */
registerFunction(null, "position", (
Function)new
PositionFunction());
/* */
/* */
/* */
/* 225 */
registerFunction(null, "round", (
Function)new
RoundFunction());
/* */
/* */
/* */
/* 229 */
registerFunction(null, "starts-with", (
Function)new
StartsWithFunction());
/* */
/* */
/* */
/* 233 */
registerFunction(null, "string", (
Function)new
StringFunction());
/* */
/* */
/* */
/* 237 */
registerFunction(null, "string-length", (
Function)new
StringLengthFunction());
/* */
/* */
/* */
/* 241 */
registerFunction(null, "substring-after", (
Function)new
SubstringAfterFunction());
/* */
/* */
/* */
/* 245 */
registerFunction(null, "substring-before", (
Function)new
SubstringBeforeFunction());
/* */
/* */
/* */
/* 249 */
registerFunction(null, "substring", (
Function)new
SubstringFunction());
/* */
/* */
/* */
/* 253 */
registerFunction(null, "sum", (
Function)new
SumFunction());
/* */
/* */
/* */
/* 257 */
registerFunction(null, "true", (
Function)new
TrueFunction());
/* */
/* */
/* */
/* 261 */
registerFunction(null, "translate", (
Function)new
TranslateFunction());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ private void
registerXSLTFunctions() {
/* 269 */
registerFunction(null, "document", (
Function)new
DocumentFunction());
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private void
registerExtensionFunctions() {
/* 278 */
registerFunction(null, "evaluate", (
Function)new
EvaluateFunction());
/* */
/* */
/* */
/* 282 */
registerFunction(null, "lower-case", (
Function)new
LowerFunction());
/* */
/* */
/* */
/* 286 */
registerFunction(null, "upper-case", (
Function)new
UpperFunction());
/* */
/* */
/* */
/* 290 */
registerFunction(null, "ends-with", (
Function)new
EndsWithFunction());
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/XPathFunctionContext.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/