blob: ab50a8e0c7821bb1021691e73f2586c84fdf3168 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Lucene.Net: Lucene.Net.QueryParsers.Token Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="lucene-net-icon-128x128.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Lucene.Net
&#160;<span id="projectnumber">3.0.3</span>
</div>
<div id="projectbrief">Lucene.Net is a .NET port of the Java Lucene Indexing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="Index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_lucene.html">Lucene</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net.html">Net</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net_1_1_query_parsers.html">QueryParsers</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_lucene_1_1_net_1_1_query_parsers_1_1_token-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.QueryParsers.Token Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Describes the input token stream.
<a href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3da4897972d4f013a046d27d33f0f33b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a3da4897972d4f013a046d27d33f0f33b">Token</a> ()</td></tr>
<tr class="memdesc:a3da4897972d4f013a046d27d33f0f33b"><td class="mdescLeft">&#160;</td><td class="mdescRight">No-argument constructor <a href="#a3da4897972d4f013a046d27d33f0f33b"></a><br/></td></tr>
<tr class="separator:a3da4897972d4f013a046d27d33f0f33b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae2708f69fe36246390562c290b6fdcb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#aae2708f69fe36246390562c290b6fdcb">Token</a> (int <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a3f99a183fba330c95d9a04bc62b74805">kind</a>)</td></tr>
<tr class="memdesc:aae2708f69fe36246390562c290b6fdcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new token for the specified Image. <a href="#aae2708f69fe36246390562c290b6fdcb"></a><br/></td></tr>
<tr class="separator:aae2708f69fe36246390562c290b6fdcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fa03da3a0397ccd4f898b84809cf822"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a4fa03da3a0397ccd4f898b84809cf822">Token</a> (int <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a3f99a183fba330c95d9a04bc62b74805">kind</a>, System.String <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a44af6117c864fba2aba5bd9b7ac791ae">image</a>)</td></tr>
<tr class="memdesc:a4fa03da3a0397ccd4f898b84809cf822"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new token for the specified Image and Kind. <a href="#a4fa03da3a0397ccd4f898b84809cf822"></a><br/></td></tr>
<tr class="separator:a4fa03da3a0397ccd4f898b84809cf822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8b54fbaf6a3cd2b8b87bcaca22ac858"><td class="memItemLeft" align="right" valign="top">override System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#ae8b54fbaf6a3cd2b8b87bcaca22ac858">ToString</a> ()</td></tr>
<tr class="memdesc:ae8b54fbaf6a3cd2b8b87bcaca22ac858"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the image. <a href="#ae8b54fbaf6a3cd2b8b87bcaca22ac858"></a><br/></td></tr>
<tr class="separator:ae8b54fbaf6a3cd2b8b87bcaca22ac858"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af2a21f4ed8cc4548d72fe7ef6b320ce8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#af2a21f4ed8cc4548d72fe7ef6b320ce8">NewToken</a> (int ofKind, System.String <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a44af6117c864fba2aba5bd9b7ac791ae">image</a>)</td></tr>
<tr class="memdesc:af2a21f4ed8cc4548d72fe7ef6b320ce8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> object, by default. However, if you want, you can create and return subclass objects based on the value of ofKind. Simply add the cases to the switch for all those special cases. For example, if you have a subclass of <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> called IDToken that you want to create if ofKind is ID, simply add something like : <a href="#af2a21f4ed8cc4548d72fe7ef6b320ce8"></a><br/></td></tr>
<tr class="separator:af2a21f4ed8cc4548d72fe7ef6b320ce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac50186297b529d0ced0ff6dda0440a54"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#ac50186297b529d0ced0ff6dda0440a54">NewToken</a> (int ofKind)</td></tr>
<tr class="separator:ac50186297b529d0ced0ff6dda0440a54"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a3f99a183fba330c95d9a04bc62b74805"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a3f99a183fba330c95d9a04bc62b74805">kind</a></td></tr>
<tr class="memdesc:a3f99a183fba330c95d9a04bc62b74805"><td class="mdescLeft">&#160;</td><td class="mdescRight">An integer that describes the kind of this token. This numbering system is determined by JavaCCParser, and a table of these numbers is stored in the file ...Constants.java. <a href="#a3f99a183fba330c95d9a04bc62b74805"></a><br/></td></tr>
<tr class="separator:a3f99a183fba330c95d9a04bc62b74805"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ddf60b37195f5e1b763ec94a943c135"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a9ddf60b37195f5e1b763ec94a943c135">beginLine</a></td></tr>
<tr class="memdesc:a9ddf60b37195f5e1b763ec94a943c135"><td class="mdescLeft">&#160;</td><td class="mdescRight">The line number of the first character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. <a href="#a9ddf60b37195f5e1b763ec94a943c135"></a><br/></td></tr>
<tr class="separator:a9ddf60b37195f5e1b763ec94a943c135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9de54f3ba167479d3469088ca6e407e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#ae9de54f3ba167479d3469088ca6e407e">beginColumn</a></td></tr>
<tr class="memdesc:ae9de54f3ba167479d3469088ca6e407e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The column number of the first character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. <a href="#ae9de54f3ba167479d3469088ca6e407e"></a><br/></td></tr>
<tr class="separator:ae9de54f3ba167479d3469088ca6e407e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab18cd1d8dddffdede10a05c790437f9d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#ab18cd1d8dddffdede10a05c790437f9d">endLine</a></td></tr>
<tr class="memdesc:ab18cd1d8dddffdede10a05c790437f9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The line number of the last character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. <a href="#ab18cd1d8dddffdede10a05c790437f9d"></a><br/></td></tr>
<tr class="separator:ab18cd1d8dddffdede10a05c790437f9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acda9062cc1b8057d8873ac18efa94f33"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#acda9062cc1b8057d8873ac18efa94f33">endColumn</a></td></tr>
<tr class="memdesc:acda9062cc1b8057d8873ac18efa94f33"><td class="mdescLeft">&#160;</td><td class="mdescRight">The column number of the last character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. <a href="#acda9062cc1b8057d8873ac18efa94f33"></a><br/></td></tr>
<tr class="separator:acda9062cc1b8057d8873ac18efa94f33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44af6117c864fba2aba5bd9b7ac791ae"><td class="memItemLeft" align="right" valign="top">System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a44af6117c864fba2aba5bd9b7ac791ae">image</a></td></tr>
<tr class="memdesc:a44af6117c864fba2aba5bd9b7ac791ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">The string image of the token. <a href="#a44af6117c864fba2aba5bd9b7ac791ae"></a><br/></td></tr>
<tr class="separator:a44af6117c864fba2aba5bd9b7ac791ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc46f6594e671f55b10dbb323c4858ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#abc46f6594e671f55b10dbb323c4858ae">next</a></td></tr>
<tr class="memdesc:abc46f6594e671f55b10dbb323c4858ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">A reference to the next regular (non-special) token from the input stream. If this is the last token from the input stream, or if the token manager has not read tokens beyond this one, this field is set to null. This is true only if this token is also a regular token. Otherwise, see below for a description of the contents of this field. <a href="#abc46f6594e671f55b10dbb323c4858ae"></a><br/></td></tr>
<tr class="separator:abc46f6594e671f55b10dbb323c4858ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77b6adaf0fe1d5485816019abd9f4781"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a77b6adaf0fe1d5485816019abd9f4781">specialToken</a></td></tr>
<tr class="memdesc:a77b6adaf0fe1d5485816019abd9f4781"><td class="mdescLeft">&#160;</td><td class="mdescRight">This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token. If there are no such special tokens, this field is set to null. When there are more than one such special token, this field refers to the last of these special tokens, which in turn refers to the next previous special token through its specialToken field, and so on until the first special token (whose specialToken field is null). The next fields of special tokens refer to other special tokens that immediately follow it (without an intervening regular token). If there is no such token, this field is null. <a href="#a77b6adaf0fe1d5485816019abd9f4781"></a><br/></td></tr>
<tr class="separator:a77b6adaf0fe1d5485816019abd9f4781"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a4a865c365005bf2676fef7a2df9a44c1"><td class="memItemLeft" align="right" valign="top">virtual object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html#a4a865c365005bf2676fef7a2df9a44c1">Value</a><code> [get]</code></td></tr>
<tr class="memdesc:a4a865c365005bf2676fef7a2df9a44c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">An optional attribute value of the <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. Tokens which are not used as syntactic sugar will often contain meaningful values that will be used later on by the compiler or interpreter. This attribute value is often different from the image. Any subclass of <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> that actually wants to return a non-null value can override this method as appropriate. <a href="#a4a865c365005bf2676fef7a2df9a44c1"></a><br/></td></tr>
<tr class="separator:a4a865c365005bf2676fef7a2df9a44c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Describes the input token stream.</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00028">28</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3da4897972d4f013a046d27d33f0f33b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.QueryParsers.Token.Token </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>No-argument constructor</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00084">84</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aae2708f69fe36246390562c290b6fdcb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.QueryParsers.Token.Token </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>kind</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a new token for the specified Image.</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00089">89</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a4fa03da3a0397ccd4f898b84809cf822"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.QueryParsers.Token.Token </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>kind</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>image</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a new token for the specified Image and Kind.</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00094">94</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af2a21f4ed8cc4548d72fe7ef6b320ce8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a> Lucene.Net.QueryParsers.Token.NewToken </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>ofKind</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>image</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a new <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> object, by default. However, if you want, you can create and return subclass objects based on the value of ofKind. Simply add the cases to the switch for all those special cases. For example, if you have a subclass of <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> called IDToken that you want to create if ofKind is ID, simply add something like : </p>
<p>case MyParserConstants.ID : return new IDToken(ofKind, image);</p>
<p>to the following switch statement. Then you can cast matchedToken variable to the appropriate type and use sit in your lexical actions. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00117">117</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ac50186297b529d0ced0ff6dda0440a54"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a> Lucene.Net.QueryParsers.Token.NewToken </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>ofKind</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00127">127</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ae8b54fbaf6a3cd2b8b87bcaca22ac858"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override System.String Lucene.Net.QueryParsers.Token.ToString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the image.</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00101">101</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae9de54f3ba167479d3469088ca6e407e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.QueryParsers.Token.beginColumn</td>
</tr>
</table>
</div><div class="memdoc">
<p>The column number of the first character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00040">40</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a9ddf60b37195f5e1b763ec94a943c135"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.QueryParsers.Token.beginLine</td>
</tr>
</table>
</div><div class="memdoc">
<p>The line number of the first character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00038">38</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="acda9062cc1b8057d8873ac18efa94f33"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.QueryParsers.Token.endColumn</td>
</tr>
</table>
</div><div class="memdoc">
<p>The column number of the last character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00044">44</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ab18cd1d8dddffdede10a05c790437f9d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.QueryParsers.Token.endLine</td>
</tr>
</table>
</div><div class="memdoc">
<p>The line number of the last character of this <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00042">42</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a44af6117c864fba2aba5bd9b7ac791ae"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">System.String Lucene.Net.QueryParsers.Token.image</td>
</tr>
</table>
</div><div class="memdoc">
<p>The string image of the token.</p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00047">47</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a3f99a183fba330c95d9a04bc62b74805"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.QueryParsers.Token.kind</td>
</tr>
</table>
</div><div class="memdoc">
<p>An integer that describes the kind of this token. This numbering system is determined by JavaCCParser, and a table of these numbers is stored in the file ...Constants.java. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00035">35</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="abc46f6594e671f55b10dbb323c4858ae"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a> Lucene.Net.QueryParsers.Token.next</td>
</tr>
</table>
</div><div class="memdoc">
<p>A reference to the next regular (non-special) token from the input stream. If this is the last token from the input stream, or if the token manager has not read tokens beyond this one, this field is set to null. This is true only if this token is also a regular token. Otherwise, see below for a description of the contents of this field. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00056">56</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a77b6adaf0fe1d5485816019abd9f4781"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html">Token</a> Lucene.Net.QueryParsers.Token.specialToken</td>
</tr>
</table>
</div><div class="memdoc">
<p>This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token. If there are no such special tokens, this field is set to null. When there are more than one such special token, this field refers to the last of these special tokens, which in turn refers to the next previous special token through its specialToken field, and so on until the first special token (whose specialToken field is null). The next fields of special tokens refer to other special tokens that immediately follow it (without an intervening regular token). If there is no such token, this field is null. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00069">69</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a4a865c365005bf2676fef7a2df9a44c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual object Lucene.Net.QueryParsers.Token.Value</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An optional attribute value of the <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a>. Tokens which are not used as syntactic sugar will often contain meaningful values that will be used later on by the compiler or interpreter. This attribute value is often different from the image. Any subclass of <a class="el" href="class_lucene_1_1_net_1_1_query_parsers_1_1_token.html" title="Describes the input token stream.">Token</a> that actually wants to return a non-null value can override this method as appropriate. </p>
<p>Definition at line <a class="el" href="core_2_query_parser_2_token_8cs_source.html#l00079">79</a> of file <a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/QueryParser/<a class="el" href="core_2_query_parser_2_token_8cs_source.html">Token.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:56 for Lucene.Net by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>