public class TokenStreamToDot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.io.PrintWriter |
out |
Constructor and Description |
---|
TokenStreamToDot(java.lang.String inputText,
TokenStream in,
java.io.PrintWriter out)
If inputText is non-null, and the TokenStream has
offsets, we include the surface form in each arc's
label.
|
Modifier and Type | Method and Description |
---|---|
void |
toDot() |
protected void |
writeArc(int fromNode,
int toNode,
java.lang.String label,
java.lang.String style) |
protected void |
writeHeader()
Override to customize.
|
protected void |
writeNode(int name,
java.lang.String label) |
protected void |
writeTrailer()
Override to customize.
|
public TokenStreamToDot(java.lang.String inputText, TokenStream in, java.io.PrintWriter out)
public void toDot() throws java.io.IOException
java.io.IOException
protected void writeArc(int fromNode, int toNode, java.lang.String label, java.lang.String style)
protected void writeNode(int name, java.lang.String label)
protected void writeHeader()
protected void writeTrailer()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.