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