| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:55 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class Pattern
|
| </TITLE>
|
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
| </HEAD>
|
| <BODY BGCOLOR="white">
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Pattern.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Parser.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Stylesheet.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="Pattern.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#fields_inherited_from_class_org.apache.xalan.xsltc.compiler.SyntaxTreeNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.apache.xalan.xsltc.compiler</FONT>
|
| <BR>
|
| Class Pattern</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html">org.apache.xalan.xsltc.compiler.SyntaxTreeNode</A>
|
| |
|
| +--org.apache.xalan.xsltc.compiler.Expression
|
| |
|
| +--<B>org.apache.xalan.xsltc.compiler.Pattern</B>
|
| </PRE>
|
| <DL>
|
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/xalan/xsltc/compiler/LocationPathPattern.html">LocationPathPattern</A></DD>
|
| </DL>
|
| <HR>
|
| <DL>
|
| <DT>public abstract class <B>Pattern</B><DT>extends org.apache.xalan.xsltc.compiler.Expression</DL>
|
|
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
| <A NAME="fields_inherited_from_class_org.apache.xalan.xsltc.compiler.SyntaxTreeNode"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Fields inherited from class org.apache.xalan.xsltc.compiler.<A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html">SyntaxTreeNode</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#UNKNOWN_STYLESHEET_NODE_ID">UNKNOWN_STYLESHEET_NODE_ID</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Constructor Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/Pattern.html#Pattern()">Pattern</A></B>()</CODE>
|
|
|
| <BR>
|
| </TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- ========== METHOD SUMMARY =========== -->
|
|
|
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Method Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>abstract double</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/Pattern.html#getPriority()">getPriority</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the priority of this pattern (section 5.5 in the XSLT spec).</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>abstract void</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/Pattern.html#translate(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator)">translate</A></B>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/ClassGenerator.html">ClassGenerator</A> classGen, |
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/MethodGenerator.html">MethodGenerator</A> methodGen)</CODE>
|
|
|
| <BR>
|
| Translate this node into JVM bytecodes.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE>abstract <A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/Type.html">Type</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/compiler/Pattern.html#typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable)">typeCheck</A></B>(org.apache.xalan.xsltc.compiler.SymbolTable stable)</CODE>
|
|
|
| <BR>
|
| Returns the type of a pattern, which is always a <code>NodeType</code>.</TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.apache.xalan.xsltc.compiler.Expression"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xalan.xsltc.compiler.Expression</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>backPatchFalseList,
|
| backPatchTrueList,
|
| compile,
|
| desynthesize,
|
| evaluateAtCompileTime,
|
| getFalseList,
|
| getTrueList,
|
| getType,
|
| hasLastCall,
|
| hasPositionCall,
|
| lookupPrimop,
|
| startIterator,
|
| synthesize,
|
| toString,
|
| translateDesynthesized</CODE></TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_org.apache.xalan.xsltc.compiler.SyntaxTreeNode"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xalan.xsltc.compiler.<A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html">SyntaxTreeNode</A></B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#display(int)">display</A>,
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#getLineNumber()">getLineNumber</A>,
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#getParser()">getParser</A>,
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#getStylesheet()">getStylesheet</A>,
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/SyntaxTreeNode.html#parseContents(org.apache.xalan.xsltc.compiler.Parser)">parseContents</A></CODE></TD>
|
| </TR>
|
| </TABLE>
|
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Constructor Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="Pattern()"><!-- --></A><H3>
|
| Pattern</H3>
|
| <PRE>
|
| public <B>Pattern</B>()</PRE>
|
| <DL>
|
| </DL>
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable)"><!-- --></A><H3>
|
| typeCheck</H3>
|
| <PRE>
|
| public abstract <A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/Type.html">Type</A> <B>typeCheck</B>(org.apache.xalan.xsltc.compiler.SymbolTable stable) |
| throws <A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/TypeCheckError.html">TypeCheckError</A></PRE>
|
| <DL>
|
| <DD>Returns the type of a pattern, which is always a <code>NodeType</code>. |
| A <code>NodeType</code> has a number of subtypes defined by |
| <code>NodeType._type</code> corresponding to each type of node.<DD><DL>
|
| <DT><B>Overrides:</B><DD>typeCheck in class org.apache.xalan.xsltc.compiler.Expression</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="translate(org.apache.xalan.xsltc.compiler.util.ClassGenerator, org.apache.xalan.xsltc.compiler.util.MethodGenerator)"><!-- --></A><H3>
|
| translate</H3>
|
| <PRE>
|
| public abstract void <B>translate</B>(<A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/ClassGenerator.html">ClassGenerator</A> classGen, |
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/util/MethodGenerator.html">MethodGenerator</A> methodGen)</PRE>
|
| <DL>
|
| <DD>Translate this node into JVM bytecodes. Patterns are translated as |
| boolean expressions with true/false lists. Before calling |
| <code>translate</code> on a pattern, make sure that the node being |
| matched is on top of the stack. After calling <code>translate</code>, |
| make sure to backpatch both true and false lists. True lists are the |
| default, in the sense that they always <em>"fall through"</em>. If this |
| is not the intended semantics (e.g., see |
| <CODE>org.apache.xalan.xsltc.compiler.AlternativePattern#translate</CODE>) |
| then a GOTO must be appended to the instruction list after calling |
| <code>translate</code>.<DD><DL>
|
| <DT><B>Overrides:</B><DD>translate in class org.apache.xalan.xsltc.compiler.Expression</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getPriority()"><!-- --></A><H3>
|
| getPriority</H3>
|
| <PRE>
|
| public abstract double <B>getPriority</B>()</PRE>
|
| <DL>
|
| <DD>Returns the priority of this pattern (section 5.5 in the XSLT spec).</DL>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <HR>
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <TR ALIGN="center" VALIGN="top">
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Pattern.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| </TR>
|
| </TABLE>
|
| </TD>
|
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| </EM>
|
| </TD>
|
| </TR>
|
|
|
| <TR>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Parser.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/xsltc/compiler/Stylesheet.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="Pattern.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | <A HREF="#fields_inherited_from_class_org.apache.xalan.xsltc.compiler.SyntaxTreeNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|