1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /**
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 */
23
24 package com.sun.org.apache.xpath.internal.compiler;
25
26 import com.sun.org.apache.xpath.internal.functions.Function;
27 import java.lang.reflect.InvocationTargetException;
28 import java.util.HashMap;
29 import java.util.Map;
30 import javax.xml.transform.TransformerException;
31
32 /**
33 * The function table for XPath.
34 */
35 public class FunctionTable
36 {
37
38 /** The 'current()' id. */
39 public static final int FUNC_CURRENT = 0;
40
41 /** The 'last()' id. */
42 public static final int FUNC_LAST = 1;
43
44 /** The 'position()' id. */
45 public static final int FUNC_POSITION = 2;
46
47 /** The 'count()' id. */
48 public static final int FUNC_COUNT = 3;
49
50 /** The 'id()' id. */
51 public static final int FUNC_ID = 4;
52
53 /** The 'key()' id (XSLT). */
|
1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /**
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 */
22
23 package com.sun.org.apache.xpath.internal.compiler;
24
25 import com.sun.org.apache.xpath.internal.functions.Function;
26 import java.lang.reflect.InvocationTargetException;
27 import java.util.HashMap;
28 import java.util.Map;
29 import javax.xml.transform.TransformerException;
30
31 /**
32 * The function table for XPath.
33 *
34 * @LastModified: Oct 2017
35 */
36 public class FunctionTable
37 {
38
39 /** The 'current()' id. */
40 public static final int FUNC_CURRENT = 0;
41
42 /** The 'last()' id. */
43 public static final int FUNC_LAST = 1;
44
45 /** The 'position()' id. */
46 public static final int FUNC_POSITION = 2;
47
48 /** The 'count()' id. */
49 public static final int FUNC_COUNT = 3;
50
51 /** The 'id()' id. */
52 public static final int FUNC_ID = 4;
53
54 /** The 'key()' id (XSLT). */
|