public class TokenStreamToDot extends Object
Modifier and Type | Field and Description |
---|---|
protected PrintWriter |
out |
Constructor and Description |
---|
TokenStreamToDot(String inputText,
TokenStream in,
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,
String label,
String style) |
protected void |
writeHeader()
Override to customize.
|
protected void |
writeNode(int name,
String label) |
protected void |
writeTrailer()
Override to customize.
|
protected final PrintWriter out
public TokenStreamToDot(String inputText, TokenStream in, PrintWriter out)
public void toDot() throws IOException
IOException
protected void writeNode(int name, String label)
protected void writeHeader()
protected void writeTrailer()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.