PageRenderTime 82ms CodeModel.GetById 66ms app.highlight 9ms RepoModel.GetById 3ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/util/SegmentCharSequence.html

#
HTML | 353 lines | 298 code | 43 blank | 12 comment | 0 complexity | 3e68c9dc5f3d23d30caf4fdbfc7d8494 MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:16 GMT-08:00 2008 -->
  6<TITLE>
  7SegmentCharSequence (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.util.SegmentCharSequence class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SegmentCharSequence.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../org/gjt/sp/util/SegmentBuffer.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../org/gjt/sp/util/StandardUtilities.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../index.html?org/gjt/sp/util/SegmentCharSequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="SegmentCharSequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.util</FONT>
 78<BR>
 79Class SegmentCharSequence</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.util.SegmentCharSequence</B>
 83</PRE>
 84<DL>
 85<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.CharSequence</DD>
 86</DL>
 87<HR>
 88<DL>
 89<DT><PRE>public class <B>SegmentCharSequence</B><DT>extends java.lang.Object<DT>implements java.lang.CharSequence, java.io.Serializable</DL>
 90</PRE>
 91
 92<P>
 93Class that lets java.util.regex search within a javax.swing.text.Segment.
 94<P>
 95
 96<P>
 97<DL>
 98<DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#org.gjt.sp.util.SegmentCharSequence">Serialized Form</A></DL>
 99<HR>
100
101<P>
102
103<!-- ======== CONSTRUCTOR SUMMARY ======== -->
104
105<A NAME="constructor_summary"><!-- --></A>
106<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
107<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
108<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
109<B>Constructor Summary</B></FONT></TH>
110</TR>
111<TR BGCOLOR="white" CLASS="TableRowColor">
112<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#SegmentCharSequence(javax.swing.text.Segment)">SegmentCharSequence</A></B>(javax.swing.text.Segment&nbsp;seg)</CODE>
113
114<BR>
115&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
116</TR>
117<TR BGCOLOR="white" CLASS="TableRowColor">
118<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#SegmentCharSequence(javax.swing.text.Segment, boolean)">SegmentCharSequence</A></B>(javax.swing.text.Segment&nbsp;seg,
119                    boolean&nbsp;reverse)</CODE>
120
121<BR>
122&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use ReverseCharSequence to get reverse view of this class (or
123   any other CharSequence). This class doesn't support
124   subSequence() and toString() for reversed instance.</I></TD>
125</TR>
126<TR BGCOLOR="white" CLASS="TableRowColor">
127<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#SegmentCharSequence(javax.swing.text.Segment, int, int)">SegmentCharSequence</A></B>(javax.swing.text.Segment&nbsp;seg,
128                    int&nbsp;off,
129                    int&nbsp;len)</CODE>
130
131<BR>
132&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
133</TR>
134</TABLE>
135&nbsp;
136<!-- ========== METHOD SUMMARY =========== -->
137
138<A NAME="method_summary"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142<B>Method Summary</B></FONT></TH>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146<CODE>&nbsp;char</CODE></FONT></TD>
147<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#charAt(int)">charAt</A></B>(int&nbsp;index)</CODE>
148
149<BR>
150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
151</TR>
152<TR BGCOLOR="white" CLASS="TableRowColor">
153<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154<CODE>&nbsp;int</CODE></FONT></TD>
155<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#length()">length</A></B>()</CODE>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#subSequence(int, int)">subSequence</A></B>(int&nbsp;start,
164            int&nbsp;end)</CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html#toString()">toString</A></B>()</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176</TR>
177</TABLE>
178&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
179<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
181<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
182</TR>
183<TR BGCOLOR="white" CLASS="TableRowColor">
184<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
185</TR>
186</TABLE>
187&nbsp;
188<P>
189
190<!-- ========= CONSTRUCTOR DETAIL ======== -->
191
192<A NAME="constructor_detail"><!-- --></A>
193<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
195<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
196<B>Constructor Detail</B></FONT></TH>
197</TR>
198</TABLE>
199
200<A NAME="SegmentCharSequence(javax.swing.text.Segment)"><!-- --></A><H3>
201SegmentCharSequence</H3>
202<PRE>
203public <B>SegmentCharSequence</B>(javax.swing.text.Segment&nbsp;seg)</PRE>
204<DL>
205</DL>
206<HR>
207
208<A NAME="SegmentCharSequence(javax.swing.text.Segment, boolean)"><!-- --></A><H3>
209SegmentCharSequence</H3>
210<PRE>
211<FONT SIZE="-1">@Deprecated
212</FONT>public <B>SegmentCharSequence</B>(javax.swing.text.Segment&nbsp;seg,
213                                      boolean&nbsp;reverse)</PRE>
214<DL>
215<DD><B>Deprecated.</B>&nbsp;<I>Use ReverseCharSequence to get reverse view of this class (or
216   any other CharSequence). This class doesn't support
217   subSequence() and toString() for reversed instance.</I>
218<P>
219</DL>
220<HR>
221
222<A NAME="SegmentCharSequence(javax.swing.text.Segment, int, int)"><!-- --></A><H3>
223SegmentCharSequence</H3>
224<PRE>
225public <B>SegmentCharSequence</B>(javax.swing.text.Segment&nbsp;seg,
226                           int&nbsp;off,
227                           int&nbsp;len)</PRE>
228<DL>
229</DL>
230
231<!-- ============ METHOD DETAIL ========== -->
232
233<A NAME="method_detail"><!-- --></A>
234<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
236<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
237<B>Method Detail</B></FONT></TH>
238</TR>
239</TABLE>
240
241<A NAME="charAt(int)"><!-- --></A><H3>
242charAt</H3>
243<PRE>
244public char <B>charAt</B>(int&nbsp;index)</PRE>
245<DL>
246<DD><DL>
247<DT><B>Specified by:</B><DD><CODE>charAt</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
248</DD>
249<DD><DL>
250</DL>
251</DD>
252</DL>
253<HR>
254
255<A NAME="length()"><!-- --></A><H3>
256length</H3>
257<PRE>
258public int <B>length</B>()</PRE>
259<DL>
260<DD><DL>
261<DT><B>Specified by:</B><DD><CODE>length</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
262</DD>
263<DD><DL>
264</DL>
265</DD>
266</DL>
267<HR>
268
269<A NAME="subSequence(int, int)"><!-- --></A><H3>
270subSequence</H3>
271<PRE>
272public java.lang.CharSequence <B>subSequence</B>(int&nbsp;start,
273                                          int&nbsp;end)</PRE>
274<DL>
275<DD><DL>
276<DT><B>Specified by:</B><DD><CODE>subSequence</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
277</DD>
278<DD><DL>
279</DL>
280</DD>
281</DL>
282<HR>
283
284<A NAME="toString()"><!-- --></A><H3>
285toString</H3>
286<PRE>
287public java.lang.String <B>toString</B>()</PRE>
288<DL>
289<DD><DL>
290<DT><B>Specified by:</B><DD><CODE>toString</CODE> in interface <CODE>java.lang.CharSequence</CODE><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
291</DD>
292<DD><DL>
293</DL>
294</DD>
295</DL>
296<!-- ========= END OF CLASS DATA ========= -->
297<HR>
298
299
300<!-- ======= START OF BOTTOM NAVBAR ====== -->
301<A NAME="navbar_bottom"><!-- --></A>
302<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
303<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
304<TR>
305<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
306<A NAME="navbar_bottom_firstrow"><!-- --></A>
307<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
308  <TR ALIGN="center" VALIGN="top">
309  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
310  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
311  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
312  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SegmentCharSequence.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
313  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
314  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
315  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
316  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
317  </TR>
318</TABLE>
319</TD>
320<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
321</EM>
322</TD>
323</TR>
324
325<TR>
326<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
327&nbsp;<A HREF="../../../../org/gjt/sp/util/SegmentBuffer.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
328&nbsp;<A HREF="../../../../org/gjt/sp/util/StandardUtilities.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
329<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
330  <A HREF="../../../../index.html?org/gjt/sp/util/SegmentCharSequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
331&nbsp;<A HREF="SegmentCharSequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
332&nbsp;
333<NOSCRIPT>
334  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
335</NOSCRIPT>
336
337
338</FONT></TD>
339</TR>
340<TR>
341<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
342  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
343<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
344DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
345</TR>
346</TABLE>
347<A NAME="skip-navbar_bottom"></A>
348<!-- ======== END OF BOTTOM NAVBAR ======= -->
349
350<HR>
351
352</BODY>
353</HTML>