Class TokenStreamToDot
Consumes a Lucene.Net.Analysis.TokenStream and outputs the dot (graphviz) string (graph).
Inheritance
System.Object
TokenStreamToDot
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class TokenStreamToDot
Constructors
| Improve this Doc View SourceTokenStreamToDot(String, TokenStream, TextWriter)
If inputText is non-null, and the Lucene.Net.Analysis.TokenStream has offsets, we include the surface form in each arc's label.
Declaration
public TokenStreamToDot(string inputText, TokenStream in, TextWriter out)
Parameters
Type | Name | Description |
---|---|---|
System.String | inputText | |
Lucene.Net.Analysis.TokenStream | in | |
System.IO.TextWriter | out |
Fields
| Improve this Doc View Sourcem_out
Declaration
protected readonly TextWriter m_out
Field Value
Type | Description |
---|---|
System.IO.TextWriter |
Methods
| Improve this Doc View SourceToDot()
Declaration
public virtual void ToDot()
WriteArc(Int32, Int32, String, String)
Declaration
protected virtual void WriteArc(int fromNode, int toNode, string label, string style)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fromNode | |
System.Int32 | toNode | |
System.String | label | |
System.String | style |
WriteHeader()
Override to customize.
Declaration
protected virtual void WriteHeader()
WriteNode(Int32, String)
Declaration
protected virtual void WriteNode(int name, string label)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | name | |
System.String | label |
WriteTrailer()
Override to customize.
Declaration
protected virtual void WriteTrailer()