tokenmarker.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 617 行 · 第 1/2 页

HTML
617
字号
<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="firstToken"><!-- --></A><H3>firstToken</H3><PRE>protected <A HREF="../../../../../com/rapidminer/gui/tools/syntax/Token.html" title="class in com.rapidminer.gui.tools.syntax">Token</A> <B>firstToken</B></PRE><DL><DD>The first token in the list. This should be used as the return value from <code>markTokens()</code>.<P><DL></DL></DL><HR><A NAME="lastToken"><!-- --></A><H3>lastToken</H3><PRE>protected <A HREF="../../../../../com/rapidminer/gui/tools/syntax/Token.html" title="class in com.rapidminer.gui.tools.syntax">Token</A> <B>lastToken</B></PRE><DL><DD>The last token in the list. New tokens are added here. This should be set to null before a new line is to be tokenized.<P><DL></DL></DL><HR><A NAME="lineInfo"><!-- --></A><H3>lineInfo</H3><PRE>protected <A HREF="../../../../../com/rapidminer/gui/tools/syntax/TokenMarker.LineInfo.html" title="class in com.rapidminer.gui.tools.syntax">TokenMarker.LineInfo</A>[] <B>lineInfo</B></PRE><DL><DD>An array for storing information about lines. It is enlarged and shrunk automatically by the <code>insertLines()</code> and <code>deleteLines()</code> methods.<P><DL></DL></DL><HR><A NAME="length"><!-- --></A><H3>length</H3><PRE>protected int <B>length</B></PRE><DL><DD>The number of lines in the model being tokenized. This can be less than the length of the <code>lineInfo</code> array.<P><DL></DL></DL><HR><A NAME="lastLine"><!-- --></A><H3>lastLine</H3><PRE>protected int <B>lastLine</B></PRE><DL><DD>The last tokenized line.<P><DL></DL></DL><HR><A NAME="nextLineRequested"><!-- --></A><H3>nextLineRequested</H3><PRE>protected boolean <B>nextLineRequested</B></PRE><DL><DD>True if the next line should be painted.<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="TokenMarker()"><!-- --></A><H3>TokenMarker</H3><PRE>protected <B>TokenMarker</B>()</PRE><DL><DD>Creates a new <code>TokenMarker</code>. This DOES NOT create a lineInfo array; an initial call to <code>insertLines()</code> does that.<P></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="markTokens(javax.swing.text.Segment, int)"><!-- --></A><H3>markTokens</H3><PRE>public <A HREF="../../../../../com/rapidminer/gui/tools/syntax/Token.html" title="class in com.rapidminer.gui.tools.syntax">Token</A> <B>markTokens</B>(javax.swing.text.Segment&nbsp;line,                        int&nbsp;lineIndex)</PRE><DL><DD>A wrapper for the lower-level <code>markTokensImpl</code> method that is called to split a line up into tokens.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>line</CODE> - The line<DD><CODE>lineIndex</CODE> - The line number</DL></DD></DL><HR><A NAME="markTokensImpl(byte, javax.swing.text.Segment, int)"><!-- --></A><H3>markTokensImpl</H3><PRE>protected abstract byte <B>markTokensImpl</B>(byte&nbsp;token,                                       javax.swing.text.Segment&nbsp;line,                                       int&nbsp;lineIndex)</PRE><DL><DD>An abstract method that splits a line up into tokens. It should parse the line, and call <code>addToken()</code> to add syntax tokens to the token list. Then, it should return the initial token type for the next line. <p>  For example if the current line contains the start of a multiline comment that doesn't end on that line, this method should return the comment token type so that it continues on the next line.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>token</CODE> - The initial token type for this line<DD><CODE>line</CODE> - The line to be tokenized<DD><CODE>lineIndex</CODE> - The index of the line in the document, starting at 0<DT><B>Returns:</B><DD>The initial token type for the next line</DL></DD></DL><HR><A NAME="supportsMultilineTokens()"><!-- --></A><H3>supportsMultilineTokens</H3><PRE>public boolean <B>supportsMultilineTokens</B>()</PRE><DL><DD>Returns if the token marker supports tokens that span multiple lines. If this is true, the object using this token marker is required to pass all lines in the document to the <code>markTokens()</code> method (in turn). <p>  The default implementation returns true; it should be overridden to return false on simpler token markers for increased speed.<P><DD><DL></DL></DD></DL><HR><A NAME="insertLines(int, int)"><!-- --></A><H3>insertLines</H3><PRE>public void <B>insertLines</B>(int&nbsp;index,                        int&nbsp;lines)</PRE><DL><DD>Informs the token marker that lines have been inserted into the document. This inserts a gap in the <code>lineInfo</code> array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The first line number<DD><CODE>lines</CODE> - The number of lines</DL></DD></DL><HR><A NAME="deleteLines(int, int)"><!-- --></A><H3>deleteLines</H3><PRE>public void <B>deleteLines</B>(int&nbsp;index,                        int&nbsp;lines)</PRE><DL><DD>Informs the token marker that line have been deleted from the document. This removes the lines in question from the <code>lineInfo</code> array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The first line number<DD><CODE>lines</CODE> - The number of lines</DL></DD></DL><HR><A NAME="getLineCount()"><!-- --></A><H3>getLineCount</H3><PRE>public int <B>getLineCount</B>()</PRE><DL><DD>Returns the number of lines in this token marker.<P><DD><DL></DL></DD></DL><HR><A NAME="isNextLineRequested()"><!-- --></A><H3>isNextLineRequested</H3><PRE>public boolean <B>isNextLineRequested</B>()</PRE><DL><DD>Returns true if the next line should be repainted. This will return true after a line has been tokenized that starts a multiline token that continues onto the next line.<P><DD><DL></DL></DD></DL><HR><A NAME="ensureCapacity(int)"><!-- --></A><H3>ensureCapacity</H3><PRE>protected void <B>ensureCapacity</B>(int&nbsp;index)</PRE><DL><DD>Ensures that the <code>lineInfo</code> array can contain the specified index. This enlarges it if necessary. No action is taken if the array is large enough already. <p>  It should be unnecessary to call this under normal circumstances; <code>insertLine()</code> should take care of enlarging the line info array automatically.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The array index</DL></DD></DL><HR><A NAME="addToken(int, byte)"><!-- --></A><H3>addToken</H3><PRE>protected void <B>addToken</B>(int&nbsp;length,                        byte&nbsp;id)</PRE><DL><DD>Adds a token to the token list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - The length of the token<DD><CODE>id</CODE> - The id of the token</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/TokenMarker.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><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=114160&amp;type=2" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/rapidminer/gui/tools/syntax/Token.html" title="class in com.rapidminer.gui.tools.syntax"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/rapidminer/gui/tools/syntax/TokenMarker.LineInfo.html" title="class in com.rapidminer.gui.tools.syntax"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/rapidminer/gui/tools/syntax/TokenMarker.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TokenMarker.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;<A HREF="#nested_class_summary">NESTED</A>&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><i>Copyright &#169; 2001-2008 by <a href="http://rapid-i.com" target="_blank">Rapid-I</a></i></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?