PageRenderTime 44ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/syntax/DummyTokenHandler.html

#
HTML | 332 lines | 279 code | 39 blank | 14 comment | 0 complexity | a5c82f2027e77ef22713d1435982556d 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:13 GMT-08:00 2008 -->
  6. <TITLE>
  7. DummyTokenHandler (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.syntax.DummyTokenHandler 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/DummyTokenHandler.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/jedit/syntax/DisplayTokenHandler.html" title="class in org.gjt.sp.jedit.syntax"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/KeywordMap.html" title="class in org.gjt.sp.jedit.syntax"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/syntax/DummyTokenHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="DummyTokenHandler.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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.jedit.syntax</FONT>
  66. <BR>
  67. Class DummyTokenHandler</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.syntax.DummyTokenHandler</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html" title="interface in org.gjt.sp.jedit.syntax">TokenHandler</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public class <B>DummyTokenHandler</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html" title="interface in org.gjt.sp.jedit.syntax">TokenHandler</A></DL>
  78. </PRE>
  79. <P>
  80. A dummy token handler that discards tokens.
  81. <P>
  82. <P>
  83. <DL>
  84. <DT><B>Since:</B></DT>
  85. <DD>jEdit 4.1pre1</DD>
  86. </DL>
  87. <HR>
  88. <P>
  89. <!-- =========== FIELD SUMMARY =========== -->
  90. <A NAME="field_summary"><!-- --></A>
  91. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  92. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  93. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  94. <B>Field Summary</B></FONT></TH>
  95. </TR>
  96. <TR BGCOLOR="white" CLASS="TableRowColor">
  97. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  98. <CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html" title="class in org.gjt.sp.jedit.syntax">DummyTokenHandler</A></CODE></FONT></TD>
  99. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html#INSTANCE">INSTANCE</A></B></CODE>
  100. <BR>
  101. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To avoid having to create new instances of this class, use
  102. this variable.</TD>
  103. </TR>
  104. </TABLE>
  105. &nbsp;
  106. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  107. <A NAME="constructor_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Constructor Summary</B></FONT></TH>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html#DummyTokenHandler()">DummyTokenHandler</A></B>()</CODE>
  115. <BR>
  116. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  117. </TR>
  118. </TABLE>
  119. &nbsp;
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <A NAME="method_summary"><!-- --></A>
  122. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  123. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  124. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  125. <B>Method Summary</B></FONT></TH>
  126. </TR>
  127. <TR BGCOLOR="white" CLASS="TableRowColor">
  128. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  129. <CODE>&nbsp;void</CODE></FONT></TD>
  130. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html#handleToken(javax.swing.text.Segment, byte, int, int, org.gjt.sp.jedit.syntax.TokenMarker.LineContext)">handleToken</A></B>(javax.swing.text.Segment&nbsp;seg,
  131. byte&nbsp;id,
  132. int&nbsp;offset,
  133. int&nbsp;length,
  134. <A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.LineContext.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker.LineContext</A>&nbsp;context)</CODE>
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the token marker when a syntax token has been parsed.</TD>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  140. <CODE>&nbsp;void</CODE></FONT></TD>
  141. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html#setLineContext(org.gjt.sp.jedit.syntax.TokenMarker.LineContext)">setLineContext</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.LineContext.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker.LineContext</A>&nbsp;lineContext)</CODE>
  142. <BR>
  143. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The token handler can compare this object with the object
  144. previously given for this line to see if the token type at the end
  145. of the line has changed (meaning subsequent lines might need to be
  146. retokenized).</TD>
  147. </TR>
  148. </TABLE>
  149. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  150. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  151. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  152. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  153. </TR>
  154. <TR BGCOLOR="white" CLASS="TableRowColor">
  155. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  156. </TR>
  157. </TABLE>
  158. &nbsp;
  159. <P>
  160. <!-- ============ FIELD DETAIL =========== -->
  161. <A NAME="field_detail"><!-- --></A>
  162. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  163. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  164. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  165. <B>Field Detail</B></FONT></TH>
  166. </TR>
  167. </TABLE>
  168. <A NAME="INSTANCE"><!-- --></A><H3>
  169. INSTANCE</H3>
  170. <PRE>
  171. public static final <A HREF="../../../../../org/gjt/sp/jedit/syntax/DummyTokenHandler.html" title="class in org.gjt.sp.jedit.syntax">DummyTokenHandler</A> <B>INSTANCE</B></PRE>
  172. <DL>
  173. <DD>To avoid having to create new instances of this class, use
  174. this variable. This is allowed because instances of this
  175. class do not store any state.
  176. <P>
  177. <DL>
  178. </DL>
  179. </DL>
  180. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  181. <A NAME="constructor_detail"><!-- --></A>
  182. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  183. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  184. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  185. <B>Constructor Detail</B></FONT></TH>
  186. </TR>
  187. </TABLE>
  188. <A NAME="DummyTokenHandler()"><!-- --></A><H3>
  189. DummyTokenHandler</H3>
  190. <PRE>
  191. public <B>DummyTokenHandler</B>()</PRE>
  192. <DL>
  193. </DL>
  194. <!-- ============ METHOD DETAIL ========== -->
  195. <A NAME="method_detail"><!-- --></A>
  196. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  197. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  198. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  199. <B>Method Detail</B></FONT></TH>
  200. </TR>
  201. </TABLE>
  202. <A NAME="handleToken(javax.swing.text.Segment, byte, int, int, org.gjt.sp.jedit.syntax.TokenMarker.LineContext)"><!-- --></A><H3>
  203. handleToken</H3>
  204. <PRE>
  205. public void <B>handleToken</B>(javax.swing.text.Segment&nbsp;seg,
  206. byte&nbsp;id,
  207. int&nbsp;offset,
  208. int&nbsp;length,
  209. <A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.LineContext.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker.LineContext</A>&nbsp;context)</PRE>
  210. <DL>
  211. <DD>Called by the token marker when a syntax token has been parsed.
  212. <P>
  213. <DD><DL>
  214. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html#handleToken(javax.swing.text.Segment, byte, int, int, org.gjt.sp.jedit.syntax.TokenMarker.LineContext)">handleToken</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html" title="interface in org.gjt.sp.jedit.syntax">TokenHandler</A></CODE></DL>
  215. </DD>
  216. <DD><DL>
  217. <DT><B>Parameters:</B><DD><CODE>seg</CODE> - The segment containing the text<DD><CODE>id</CODE> - The token type (one of the constants in the
  218. <A HREF="../../../../../org/gjt/sp/jedit/syntax/Token.html" title="class in org.gjt.sp.jedit.syntax"><CODE>Token</CODE></A> class).<DD><CODE>offset</CODE> - The start offset of the token<DD><CODE>length</CODE> - The number of characters in the token<DD><CODE>context</CODE> - The line context<DT><B>Since:</B></DT>
  219. <DD>jEdit 4.2pre3</DD>
  220. </DL>
  221. </DD>
  222. </DL>
  223. <HR>
  224. <A NAME="setLineContext(org.gjt.sp.jedit.syntax.TokenMarker.LineContext)"><!-- --></A><H3>
  225. setLineContext</H3>
  226. <PRE>
  227. public void <B>setLineContext</B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.LineContext.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker.LineContext</A>&nbsp;lineContext)</PRE>
  228. <DL>
  229. <DD>The token handler can compare this object with the object
  230. previously given for this line to see if the token type at the end
  231. of the line has changed (meaning subsequent lines might need to be
  232. retokenized).
  233. <P>
  234. <DD><DL>
  235. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html#setLineContext(org.gjt.sp.jedit.syntax.TokenMarker.LineContext)">setLineContext</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html" title="interface in org.gjt.sp.jedit.syntax">TokenHandler</A></CODE></DL>
  236. </DD>
  237. <DD><DL>
  238. <DT><B>Since:</B></DT>
  239. <DD>jEdit 4.2pre6</DD>
  240. </DL>
  241. </DD>
  242. </DL>
  243. <!-- ========= END OF CLASS DATA ========= -->
  244. <HR>
  245. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  246. <A NAME="navbar_bottom"><!-- --></A>
  247. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  248. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  249. <TR>
  250. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  251. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  252. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  253. <TR ALIGN="center" VALIGN="top">
  254. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  255. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  256. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  257. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DummyTokenHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  258. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  259. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  260. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  261. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  262. </TR>
  263. </TABLE>
  264. </TD>
  265. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  266. </EM>
  267. </TD>
  268. </TR>
  269. <TR>
  270. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  271. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/DisplayTokenHandler.html" title="class in org.gjt.sp.jedit.syntax"><B>PREV CLASS</B></A>&nbsp;
  272. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/KeywordMap.html" title="class in org.gjt.sp.jedit.syntax"><B>NEXT CLASS</B></A></FONT></TD>
  273. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  274. <A HREF="../../../../../index.html?org/gjt/sp/jedit/syntax/DummyTokenHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  275. &nbsp;<A HREF="DummyTokenHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  276. &nbsp;
  277. <NOSCRIPT>
  278. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  279. </NOSCRIPT>
  280. </FONT></TD>
  281. </TR>
  282. <TR>
  283. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  284. 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>
  285. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  286. 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>
  287. </TR>
  288. </TABLE>
  289. <A NAME="skip-navbar_bottom"></A>
  290. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  291. <HR>
  292. </BODY>
  293. </HTML>