gov.llnl.babel
Class Generator
public class Generator
extends java.lang.Object
This is a simple object that manages the parsing and generation of
files.
Generator
public Generator(Context context)
applyVisitor
public void applyVisitor(Visitor visitor,
Object data)
generateClient
public void generateClient(String lang)
generateServer
public void generateServer(String lang)
generateText
public void generateText(String lang)
hasErrorOccurred
public boolean hasErrorOccurred()
parseFileAsInclude
public boolean parseFileAsInclude(String sidl)
Parse a file but don't include its contents in the list of
symbols to be output.
sidl
- must be a filename or a proper URL (not a symbol name).
parseOrResolve
public boolean parseOrResolve(String url)
Parse a file or a URL. If it's not a file, try resolving it as a
SIDL type from the XML respository.
url
- can be a filename, a proper URL, or a SIDL type name.
printErrors
public void printErrors(PrintStream w)
resolveSymbols
public boolean resolveSymbols()
setTouchFile
public void setTouchFile(File f)