1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * 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, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21 /*
22 * $Id: TestSeq.java,v 1.2.4.1 2005/09/12 11:31:38 pvedula Exp $
23 */
31 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
32 import java.util.ArrayList;
33 import java.util.List;
34 import java.util.Map;
35
36 /**
37 * A test sequence is a sequence of patterns that
38 *
39 * (1) occured in templates in the same mode
40 * (2) share the same kernel node type (e.g. A/B and C/C/B)
41 * (3) may also contain patterns matching "*" and "node()"
42 * (element sequence only) or matching "@*" (attribute
43 * sequence only).
44 *
45 * A test sequence may have a default template, which will be
46 * instantiated if none of the other patterns match.
47 * @author Jacek Ambroziak
48 * @author Santiago Pericas-Geertsen
49 * @author Erwin Bolwidt <ejb@klomp.org>
50 * @author Morten Jorgensen <morten.jorgensen@sun.com>
51 */
52 final class TestSeq {
53
54 /**
55 * Integer code for the kernel type of this test sequence
56 */
57 private int _kernelType;
58
59 /**
60 * ArrayList of all patterns in the test sequence. May include
61 * patterns with "*", "@*" or "node()" kernel.
62 */
63 private List<LocationPathPattern> _patterns = null;
64
65 /**
66 * A reference to the Mode object.
67 */
68 private Mode _mode = null;
69
70 /**
|
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 or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 /*
21 * $Id: TestSeq.java,v 1.2.4.1 2005/09/12 11:31:38 pvedula Exp $
22 */
30 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator;
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.Map;
34
35 /**
36 * A test sequence is a sequence of patterns that
37 *
38 * (1) occured in templates in the same mode
39 * (2) share the same kernel node type (e.g. A/B and C/C/B)
40 * (3) may also contain patterns matching "*" and "node()"
41 * (element sequence only) or matching "@*" (attribute
42 * sequence only).
43 *
44 * A test sequence may have a default template, which will be
45 * instantiated if none of the other patterns match.
46 * @author Jacek Ambroziak
47 * @author Santiago Pericas-Geertsen
48 * @author Erwin Bolwidt <ejb@klomp.org>
49 * @author Morten Jorgensen <morten.jorgensen@sun.com>
50 * @LastModified: Nov 2017
51 */
52 final class TestSeq {
53
54 /**
55 * Integer code for the kernel type of this test sequence
56 */
57 private int _kernelType;
58
59 /**
60 * ArrayList of all patterns in the test sequence. May include
61 * patterns with "*", "@*" or "node()" kernel.
62 */
63 private List<LocationPathPattern> _patterns = null;
64
65 /**
66 * A reference to the Mode object.
67 */
68 private Mode _mode = null;
69
70 /**
|