29 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
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
|
29 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator;
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
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
|