|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.hydromatic.clapham.Clapham
public class Clapham
Command line utility Clapham, the railroad diagram generator.
Nested Class Summary | |
---|---|
static class |
Clapham.ImageFormat
Output format for graphics. |
Constructor Summary | |
---|---|
Clapham()
|
Method Summary | |
---|---|
static Grammar |
buildGrammar(List<ProductionNode> productionNodes)
|
void |
draw(String symbolName)
|
void |
drawAll()
|
void |
generateIndex()
|
void |
load(File inputFile,
net.hydromatic.clapham.Clapham.Dialect inputDialect)
Populates the grammar from the grammar file. |
static void |
main(String[] args)
Main command-line entry point. |
void |
setOutputDir(File file)
|
void |
setOutputEscapeFilename(boolean b)
|
void |
setOutputFormats(EnumSet<Clapham.ImageFormat> imageFormatSet)
Sets the format(s) in which to generate images. |
static Graph |
toGraph(Grammar grammar,
EbnfNode expression)
|
static void |
toPng(File inFile,
File file)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Clapham()
Method Detail |
---|
public void setOutputDir(File file)
public void setOutputEscapeFilename(boolean b)
public void generateIndex()
public void drawAll()
public void draw(String symbolName)
public void load(File inputFile, net.hydromatic.clapham.Clapham.Dialect inputDialect)
inputFile
- Grammar fileinputDialect
- Dialect of grammarpublic static void main(String[] args)
args
- Command-line argumentspublic void setOutputFormats(EnumSet<Clapham.ImageFormat> imageFormatSet)
imageFormatSet
- Set of output formatspublic static Grammar buildGrammar(List<ProductionNode> productionNodes)
public static Graph toGraph(Grammar grammar, EbnfNode expression)
public static void toPng(File inFile, File file) throws IOException, org.apache.batik.transcoder.TranscoderException
IOException
org.apache.batik.transcoder.TranscoderException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |