blob: 238e5c577199200c8682dba1e76daf638795f306 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:23 PDT 2012 -->
<TITLE>
TestSeq
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xalan.xsltc.compiler.TestSeq class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="TestSeq";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TestSeq.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Text.html" title="class in org.apache.xalan.xsltc.compiler"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/xalan/xsltc/compiler/TestSeq.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="TestSeq.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xalan.xsltc.compiler</FONT>
<BR>
Class TestSeq</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xalan.xsltc.compiler.TestSeq</B>
</PRE>
<HR>
<DL>
<DT><PRE>final class <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.49"><B>TestSeq</B></A><DT>extends java.lang.Object</DL>
</PRE>
<P>
A test sequence is a sequence of patterns that
(1) occured in templates in the same mode
(2) share the same kernel node type (e.g. A/B and C/C/B)
(3) may also contain patterns matching "*" and "node()"
(element sequence only) or matching "@*" (attribute
sequence only).
A test sequence may have a default template, which will be
instantiated if none of the other patterns match.
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler">Template</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_default">_default</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default template for this test sequence</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;InstructionList</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_instructionList">_instructionList</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Instruction list representing this test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_kernelType">_kernelType</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Integer code for the kernel type of this test sequence</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_mode">_mode</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the Mode object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;java.util.Vector</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_patterns">_patterns</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vector of all patterns in the test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;InstructionHandle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#_start">_start</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cached handle to avoid compiling more than once.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#TestSeq(java.util.Vector, int, org.apache.xalan.xsltc.compiler.Mode)">TestSeq</A></B>(java.util.Vector&nbsp;patterns,
int&nbsp;kernelType,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A>&nbsp;mode)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#TestSeq(java.util.Vector, org.apache.xalan.xsltc.compiler.Mode)">TestSeq</A></B>(java.util.Vector&nbsp;patterns,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A>&nbsp;mode)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new test sequence given a set of patterns and a mode.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;InstructionHandle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#compile(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, InstructionHandle)">compile</A></B>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/ClassGenerator.html" title="class in org.apache.xalan.xsltc.compiler.util">ClassGenerator</A>&nbsp;classGen,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/MethodGenerator.html" title="class in org.apache.xalan.xsltc.compiler.util">MethodGenerator</A>&nbsp;methodGen,
InstructionHandle&nbsp;continuation)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compile the code for this test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#findTemplates(java.util.Dictionary)">findTemplates</A></B>(java.util.Dictionary&nbsp;templates)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns, by reference, the templates that are included in
this test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;InstructionList</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#getInstructionList()">getInstructionList</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the instruction list for this test sequence</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/LocationPathPattern.html" title="class in org.apache.xalan.xsltc.compiler">LocationPathPattern</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#getPattern(int)">getPattern</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns pattern n in this test sequence</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#getPosition()">getPosition</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the position of the highest priority pattern in
this test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#getPriority()">getPriority</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the highest priority for a pattern in this test
sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;InstructionHandle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#getTemplateHandle(org.apache.xalan.xsltc.compiler.Template)">getTemplateHandle</A></B>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler">Template</A>&nbsp;template)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the instruction handle to a template's code.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#reduce()">reduce</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reduce the patterns in this test sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/TestSeq.html#toString()">toString</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this test sequence.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="_kernelType"><!-- --></A><H3>
_kernelType</H3>
<PRE>
private int <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.54"><B>_kernelType</B></A></PRE>
<DL>
<DD>Integer code for the kernel type of this test sequence
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_patterns"><!-- --></A><H3>
_patterns</H3>
<PRE>
private java.util.Vector <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.60"><B>_patterns</B></A></PRE>
<DL>
<DD>Vector of all patterns in the test sequence. May include
patterns with "*", "@*" or "node()" kernel.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_mode"><!-- --></A><H3>
_mode</H3>
<PRE>
private <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A> <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.65"><B>_mode</B></A></PRE>
<DL>
<DD>A reference to the Mode object.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_default"><!-- --></A><H3>
_default</H3>
<PRE>
private <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler">Template</A> <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.70"><B>_default</B></A></PRE>
<DL>
<DD>Default template for this test sequence
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_instructionList"><!-- --></A><H3>
_instructionList</H3>
<PRE>
private InstructionList <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.75"><B>_instructionList</B></A></PRE>
<DL>
<DD>Instruction list representing this test sequence.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_start"><!-- --></A><H3>
_start</H3>
<PRE>
private InstructionHandle <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.80"><B>_start</B></A></PRE>
<DL>
<DD>Cached handle to avoid compiling more than once.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="TestSeq(java.util.Vector, org.apache.xalan.xsltc.compiler.Mode)"><!-- --></A><H3>
TestSeq</H3>
<PRE>
public <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.85"><B>TestSeq</B></A>(java.util.Vector&nbsp;patterns,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A>&nbsp;mode)</PRE>
<DL>
<DD>Creates a new test sequence given a set of patterns and a mode.
<P>
</DL>
<HR>
<A NAME="TestSeq(java.util.Vector, int, org.apache.xalan.xsltc.compiler.Mode)"><!-- --></A><H3>
TestSeq</H3>
<PRE>
public <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.89"><B>TestSeq</B></A>(java.util.Vector&nbsp;patterns,
int&nbsp;kernelType,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Mode.html" title="class in org.apache.xalan.xsltc.compiler">Mode</A>&nbsp;mode)</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.100"><B>toString</B></A>()</PRE>
<DL>
<DD>Returns a string representation of this test sequence. Notice
that test sequences are mutable, so the value returned by this
method is different before and after calling reduce().
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getInstructionList()"><!-- --></A><H3>
getInstructionList</H3>
<PRE>
public InstructionList <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.122"><B>getInstructionList</B></A>()</PRE>
<DL>
<DD>Returns the instruction list for this test sequence
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPriority()"><!-- --></A><H3>
getPriority</H3>
<PRE>
public double <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.131"><B>getPriority</B></A>()</PRE>
<DL>
<DD>Return the highest priority for a pattern in this test
sequence. This is either the priority of the first or
of the default pattern.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPosition()"><!-- --></A><H3>
getPosition</H3>
<PRE>
public int <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.141"><B>getPosition</B></A>()</PRE>
<DL>
<DD>Returns the position of the highest priority pattern in
this test sequence.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="reduce()"><!-- --></A><H3>
reduce</H3>
<PRE>
public void <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.152"><B>reduce</B></A>()</PRE>
<DL>
<DD>Reduce the patterns in this test sequence. Creates a new
vector of patterns and sets the default pattern if it
finds a patterns that is fully reduced.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="findTemplates(java.util.Dictionary)"><!-- --></A><H3>
findTemplates</H3>
<PRE>
public void <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.180"><B>findTemplates</B></A>(java.util.Dictionary&nbsp;templates)</PRE>
<DL>
<DD>Returns, by reference, the templates that are included in
this test sequence. Note that a single template can occur
in several test sequences if its pattern is a union.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTemplateHandle(org.apache.xalan.xsltc.compiler.Template)"><!-- --></A><H3>
getTemplateHandle</H3>
<PRE>
private InstructionHandle <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.197"><B>getTemplateHandle</B></A>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler">Template</A>&nbsp;template)</PRE>
<DL>
<DD>Get the instruction handle to a template's code. This is
used when a single template occurs in several test
sequences; that is, if its pattern is a union of patterns
(e.g. match="A/B | A/C").
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPattern(int)"><!-- --></A><H3>
getPattern</H3>
<PRE>
private <A HREF="../../../../../org/apache/xalan/xsltc/compiler/LocationPathPattern.html" title="class in org.apache.xalan.xsltc.compiler">LocationPathPattern</A> <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.204"><B>getPattern</B></A>(int&nbsp;n)</PRE>
<DL>
<DD>Returns pattern n in this test sequence
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="compile(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator, InstructionHandle)"><!-- --></A><H3>
compile</H3>
<PRE>
public InstructionHandle <A HREF="../../../../../src-html/org/apache/xalan/xsltc/compiler/TestSeq.html#line.214"><B>compile</B></A>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/ClassGenerator.html" title="class in org.apache.xalan.xsltc.compiler.util">ClassGenerator</A>&nbsp;classGen,
<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/MethodGenerator.html" title="class in org.apache.xalan.xsltc.compiler.util">MethodGenerator</A>&nbsp;methodGen,
InstructionHandle&nbsp;continuation)</PRE>
<DL>
<DD>Compile the code for this test sequence. Compile patterns
from highest to lowest priority. Note that since patterns
can be share by multiple test sequences, instruction lists
must be copied before backpatching.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TestSeq.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Template.html" title="class in org.apache.xalan.xsltc.compiler"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/apache/xalan/xsltc/compiler/Text.html" title="class in org.apache.xalan.xsltc.compiler"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/xalan/xsltc/compiler/TestSeq.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="TestSeq.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>