mirror of
				https://github.com/esp8266/Arduino.git
				synced 2025-11-03 14:33:37 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			663 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			663 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 | 
						|
<!--NewPage-->
 | 
						|
<HTML>
 | 
						|
<HEAD>
 | 
						|
<TITLE>
 | 
						|
Token
 | 
						|
</TITLE>
 | 
						|
 | 
						|
<META NAME="keywords" CONTENT="processing.app.syntax.Token class">
 | 
						|
 | 
						|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 | 
						|
 | 
						|
<SCRIPT type="text/javascript">
 | 
						|
function windowTitle()
 | 
						|
{
 | 
						|
    parent.document.title="Token";
 | 
						|
}
 | 
						|
</SCRIPT>
 | 
						|
<NOSCRIPT>
 | 
						|
</NOSCRIPT>
 | 
						|
 | 
						|
</HEAD>
 | 
						|
 | 
						|
<BODY BGCOLOR="white" onload="windowTitle();">
 | 
						|
 | 
						|
 | 
						|
<!-- ========= START OF TOP NAVBAR ======= -->
 | 
						|
<A NAME="navbar_top"><!-- --></A>
 | 
						|
<A HREF="#skip-navbar_top" 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_top_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> </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="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="../../../processing/app/syntax/TextUtilities.html" title="class in processing.app.syntax"><B>PREV CLASS</B></A> 
 | 
						|
 <A HREF="../../../processing/app/syntax/TokenMarker.html" title="class in processing.app.syntax"><B>NEXT CLASS</B></A></FONT></TD>
 | 
						|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | 
						|
  <A HREF="../../../index.html?processing/app/syntax/Token.html" target="_top"><B>FRAMES</B></A>   
 | 
						|
 <A HREF="Token.html" target="_top"><B>NO FRAMES</B></A>   
 | 
						|
 <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: NESTED | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
<A NAME="skip-navbar_top"></A>
 | 
						|
<!-- ========= END OF TOP NAVBAR ========= -->
 | 
						|
 | 
						|
<HR>
 | 
						|
<!-- ======== START OF CLASS DATA ======== -->
 | 
						|
<H2>
 | 
						|
<FONT SIZE="-1">
 | 
						|
processing.app.syntax</FONT>
 | 
						|
<BR>
 | 
						|
Class Token</H2>
 | 
						|
<PRE>
 | 
						|
java.lang.Object
 | 
						|
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>processing.app.syntax.Token</B>
 | 
						|
</PRE>
 | 
						|
<HR>
 | 
						|
<DL>
 | 
						|
<DT><PRE>public class <B>Token</B><DT>extends java.lang.Object</DL>
 | 
						|
</PRE>
 | 
						|
 | 
						|
<P>
 | 
						|
A linked list of tokens. Each token has three fields - a token
 | 
						|
 identifier, which is a byte value that can be looked up in the
 | 
						|
 array returned by <code>SyntaxDocument.getColors()</code>
 | 
						|
 to get a color value, a length value which is the length of the
 | 
						|
 token in the text, and a pointer to the next token in the list.
 | 
						|
<P>
 | 
						|
 | 
						|
<P>
 | 
						|
<HR>
 | 
						|
 | 
						|
<P>
 | 
						|
<!-- =========== FIELD SUMMARY =========== -->
 | 
						|
 | 
						|
<A NAME="field_summary"><!-- --></A>
 | 
						|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 | 
						|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | 
						|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 | 
						|
<B>Field Summary</B></FONT></TH>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#COMMENT1">COMMENT1</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Comment 1 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#COMMENT2">COMMENT2</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Comment 2 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#END">END</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The token type, that along with a length of 0
 | 
						|
 marks the end of the token list.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE> byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#id">id</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The id of this token.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#ID_COUNT">ID_COUNT</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The total number of defined token ids.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#INTERNAL_FIRST">INTERNAL_FIRST</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The first id that can be used for internal state
 | 
						|
 in a token marker.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#INTERNAL_LAST">INTERNAL_LAST</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The last id that can be used for internal state
 | 
						|
 in a token marker.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#INVALID">INVALID</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Invalid token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#KEYWORD1">KEYWORD1</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Keyword 1 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#KEYWORD2">KEYWORD2</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Keyword 2 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#KEYWORD3">KEYWORD3</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Keyword 3 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#LABEL">LABEL</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Label token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE> int</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#length">length</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The length of this token.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#LITERAL1">LITERAL1</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Literal 1 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#LITERAL2">LITERAL2</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Literal 2 token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE> <A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A></CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#next">next</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          The next token in the linked list.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#NULL">NULL</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Normal text token id.</TD>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE>static byte</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#OPERATOR">OPERATOR</A></B></CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Operator token id.</TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
 
 | 
						|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 | 
						|
 | 
						|
<A NAME="constructor_summary"><!-- --></A>
 | 
						|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 | 
						|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | 
						|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 | 
						|
<B>Constructor Summary</B></FONT></TH>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#Token(int, byte)">Token</A></B>(int length,
 | 
						|
      byte id)</CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Creates a new token.</TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
 
 | 
						|
<!-- ========== METHOD SUMMARY =========== -->
 | 
						|
 | 
						|
<A NAME="method_summary"><!-- --></A>
 | 
						|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 | 
						|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | 
						|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 | 
						|
<B>Method Summary</B></FONT></TH>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | 
						|
<CODE> java.lang.String</CODE></FONT></TD>
 | 
						|
<TD><CODE><B><A HREF="../../../processing/app/syntax/Token.html#toString()">toString</A></B>()</CODE>
 | 
						|
 | 
						|
<BR>
 | 
						|
          Returns a string representation of this token.</TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 | 
						|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 | 
						|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 | 
						|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
 | 
						|
</TR>
 | 
						|
<TR BGCOLOR="white" CLASS="TableRowColor">
 | 
						|
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
 
 | 
						|
<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="NULL"><!-- --></A><H3>
 | 
						|
NULL</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>NULL</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Normal text token id. This should be used to mark
 | 
						|
 normal text.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.NULL">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="COMMENT1"><!-- --></A><H3>
 | 
						|
COMMENT1</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>COMMENT1</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Comment 1 token id. This can be used to mark a comment.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.COMMENT1">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="COMMENT2"><!-- --></A><H3>
 | 
						|
COMMENT2</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>COMMENT2</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Comment 2 token id. This can be used to mark a comment.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.COMMENT2">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="LITERAL1"><!-- --></A><H3>
 | 
						|
LITERAL1</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>LITERAL1</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Literal 1 token id. This can be used to mark a string
 | 
						|
 literal (eg, C mode uses this to mark "..." literals)
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.LITERAL1">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="LITERAL2"><!-- --></A><H3>
 | 
						|
LITERAL2</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>LITERAL2</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Literal 2 token id. This can be used to mark an object
 | 
						|
 literal (eg, Java mode uses this to mark true, false, etc)
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.LITERAL2">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="LABEL"><!-- --></A><H3>
 | 
						|
LABEL</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>LABEL</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Label token id. This can be used to mark labels
 | 
						|
 (eg, C mode uses this to mark ...: sequences)
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.LABEL">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="KEYWORD1"><!-- --></A><H3>
 | 
						|
KEYWORD1</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>KEYWORD1</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Keyword 1 token id. This can be used to mark a
 | 
						|
 keyword. This should be used for general language
 | 
						|
 constructs.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.KEYWORD1">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="KEYWORD2"><!-- --></A><H3>
 | 
						|
KEYWORD2</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>KEYWORD2</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Keyword 2 token id. This can be used to mark a
 | 
						|
 keyword. This should be used for preprocessor
 | 
						|
 commands, or variables.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.KEYWORD2">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="KEYWORD3"><!-- --></A><H3>
 | 
						|
KEYWORD3</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>KEYWORD3</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Keyword 3 token id. This can be used to mark a
 | 
						|
 keyword. This should be used for data types.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.KEYWORD3">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="OPERATOR"><!-- --></A><H3>
 | 
						|
OPERATOR</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>OPERATOR</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Operator token id. This can be used to mark an
 | 
						|
 operator. (eg, SQL mode marks +, -, etc with this
 | 
						|
 token type)
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.OPERATOR">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="INVALID"><!-- --></A><H3>
 | 
						|
INVALID</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>INVALID</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>Invalid token id. This can be used to mark invalid
 | 
						|
 or incomplete tokens, so the user can easily spot
 | 
						|
 syntax errors.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.INVALID">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="ID_COUNT"><!-- --></A><H3>
 | 
						|
ID_COUNT</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>ID_COUNT</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The total number of defined token ids.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.ID_COUNT">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="INTERNAL_FIRST"><!-- --></A><H3>
 | 
						|
INTERNAL_FIRST</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>INTERNAL_FIRST</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The first id that can be used for internal state
 | 
						|
 in a token marker.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.INTERNAL_FIRST">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="INTERNAL_LAST"><!-- --></A><H3>
 | 
						|
INTERNAL_LAST</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>INTERNAL_LAST</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The last id that can be used for internal state
 | 
						|
 in a token marker.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.INTERNAL_LAST">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="END"><!-- --></A><H3>
 | 
						|
END</H3>
 | 
						|
<PRE>
 | 
						|
public static final byte <B>END</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The token type, that along with a length of 0
 | 
						|
 marks the end of the token list.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#processing.app.syntax.Token.END">Constant Field Values</A></DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="length"><!-- --></A><H3>
 | 
						|
length</H3>
 | 
						|
<PRE>
 | 
						|
public int <B>length</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The length of this token.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
</DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="id"><!-- --></A><H3>
 | 
						|
id</H3>
 | 
						|
<PRE>
 | 
						|
public byte <B>id</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The id of this token.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
</DL>
 | 
						|
</DL>
 | 
						|
<HR>
 | 
						|
 | 
						|
<A NAME="next"><!-- --></A><H3>
 | 
						|
next</H3>
 | 
						|
<PRE>
 | 
						|
public <A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A> <B>next</B></PRE>
 | 
						|
<DL>
 | 
						|
<DD>The next token in the linked list.
 | 
						|
<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="Token(int, byte)"><!-- --></A><H3>
 | 
						|
Token</H3>
 | 
						|
<PRE>
 | 
						|
public <B>Token</B>(int length,
 | 
						|
             byte id)</PRE>
 | 
						|
<DL>
 | 
						|
<DD>Creates a new token.
 | 
						|
<P>
 | 
						|
<DL>
 | 
						|
<DT><B>Parameters:</B><DD><CODE>length</CODE> - The length of the token<DD><CODE>id</CODE> - The id of the token</DL>
 | 
						|
</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="toString()"><!-- --></A><H3>
 | 
						|
toString</H3>
 | 
						|
<PRE>
 | 
						|
public java.lang.String <B>toString</B>()</PRE>
 | 
						|
<DL>
 | 
						|
<DD>Returns a string representation of this token.
 | 
						|
<P>
 | 
						|
<DD><DL>
 | 
						|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
 | 
						|
</DD>
 | 
						|
<DD><DL>
 | 
						|
</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> </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="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="../../../processing/app/syntax/TextUtilities.html" title="class in processing.app.syntax"><B>PREV CLASS</B></A> 
 | 
						|
 <A HREF="../../../processing/app/syntax/TokenMarker.html" title="class in processing.app.syntax"><B>NEXT CLASS</B></A></FONT></TD>
 | 
						|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | 
						|
  <A HREF="../../../index.html?processing/app/syntax/Token.html" target="_top"><B>FRAMES</B></A>   
 | 
						|
 <A HREF="Token.html" target="_top"><B>NO FRAMES</B></A>   
 | 
						|
 <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: NESTED | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
 | 
						|
</TR>
 | 
						|
</TABLE>
 | 
						|
<A NAME="skip-navbar_bottom"></A>
 | 
						|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 | 
						|
 | 
						|
<HR>
 | 
						|
 | 
						|
</BODY>
 | 
						|
</HTML>
 |