public class TokenStreamToDot extends Object
Modifier and Type | Field | Description |
---|---|---|
protected PrintWriter |
out |
Constructor | 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 | 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-2018 Apache Software Foundation. All Rights Reserved.