blob: 4e1a155c7c4bbf85844090765b7e7c8762072586 [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Token
| Apache Lucene.NET 4.8.0-beta00013 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Token
| Apache Lucene.NET 4.8.0-beta00013 Documentation ">
<meta name="generator" content="docfx 2.56.2.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="queryparser/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<span id="forkongithub"><a href="https://github.com/apache/lucenenet" target="_blank">Fork me on GitHub</a></span>
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token">
<h1 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token" class="text-break">Class Token
</h1>
<div class="markdown level0 summary"><p>Describes the input token stream.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">Token</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.html">Lucene.Net.QueryParsers.Flexible.Standard.Parser</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.QueryParser.dll</h6>
<h5 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[Serializable]
public class Token</code></pre>
</div>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L88">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor">Token()</h4>
<div class="markdown level1 summary"><p>No-argument constructor</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Token()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.%23ctor(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L93">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_System_Int32_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor(System.Int32)">Token(Int32)</h4>
<div class="markdown level1 summary"><p>Constructs a new token for the specified Image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Token(int kind)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">kind</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_System_Int32_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.%23ctor(System.Int32%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L101">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token__ctor_System_Int32_System_String_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.#ctor(System.Int32,System.String)">Token(Int32, String)</h4>
<div class="markdown level1 summary"><p>Constructs a new token for the specified Image and Kind.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Token(int kind, string image)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">kind</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">image</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginColumn.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginColumn%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L40">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginColumn_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginColumn*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginColumn" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginColumn">BeginColumn</h4>
<div class="markdown level1 summary"><p>The column number of the first character of this Token.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int BeginColumn { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginLine.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginLine%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L38">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginLine_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginLine*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_BeginLine" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.BeginLine">BeginLine</h4>
<div class="markdown level1 summary"><p>The line number of the first character of this Token.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int BeginLine { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndColumn.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndColumn%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L44">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndColumn_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndColumn*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndColumn" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndColumn">EndColumn</h4>
<div class="markdown level1 summary"><p>The column number of the last character of this Token.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int EndColumn { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndLine.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndLine%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L42">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndLine_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndLine*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_EndLine" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.EndLine">EndLine</h4>
<div class="markdown level1 summary"><p>The line number of the last character of this Token.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int EndLine { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Image.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Image%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L49">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Image_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Image*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Image" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Image">Image</h4>
<div class="markdown level1 summary"><p>The string image of the token.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public string Image { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Kind.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Kind%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L35">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Kind_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Kind*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Kind" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Kind">Kind</h4>
<div class="markdown level1 summary"><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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int Kind { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Next.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Next%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L59">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Next_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Next*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Next" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Next">Next</h4>
<div class="markdown level1 summary"><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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Token Next { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_SpecialToken.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.SpecialToken%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L73">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_SpecialToken_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.SpecialToken*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_SpecialToken" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.SpecialToken">SpecialToken</h4>
<div class="markdown level1 summary"><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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Token SpecialToken { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Value.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Value%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L83">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Value_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Value*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_Value" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.Value">Value</h4>
<div class="markdown level1 summary"><p>An optional attribute value of the Token.
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 Token that actually wants to return a non-null value can
override this method as appropriate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual object Value { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Object</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L135">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_System_Int32_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken(System.Int32)">NewToken(Int32)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Token NewToken(int ofKind)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">ofKind</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_System_Int32_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken(System.Int32%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L127">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_NewToken_System_Int32_System_String_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.NewToken(System.Int32,System.String)">NewToken(Int32, String)</h4>
<div class="markdown level1 summary"><p>Returns a new <a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a> object, by default. However, if you want, you
can create and return subclass objects based on the value of <code data-dev-comment-type="paramref" class="paramref">ofKind</code>.
Simply add the cases to the switch for all those special cases.
For example, if you have a subclass of <a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a> called IDToken that
you want to create if <code data-dev-comment-type="paramref" class="paramref">ofKind</code> is ID, simply add something like :</p>
<pre><code> case MyParserConstants.ID : return new IDToken(ofKind, image);</code></pre>
<p>to the following switch statement. Then you can cast matchedToken
variable to the appropriate type and use sit in your lexical actions.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Token NewToken(int ofKind, string image)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">ofKind</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">image</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.html">Token</a></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_ToString.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.ToString%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L110">View Source</a>
</span>
<a id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_ToString_" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.ToString*"></a>
<h4 id="Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token_ToString" data-uid="Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token.ToString">ToString()</h4>
<div class="markdown level1 summary"><p>Returns the image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">System.Object.ToString()</span></div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=Lucene_Net_QueryParsers_Flexible_Standard_Parser_Token.md&amp;value=---%0Auid%3A%20Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/Token.cs/#L26" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 The Apache Software Foundation, Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache License, Version 2.0</a><br> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation. <br>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</small>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>