|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.yam.YamCommand
class YamCommand
Command-line programme for YAM translation. NOTE: this class uses an outdated implementation of the top-level YAM API which should not be used by API clients. See YamFile for the real deal.
Field Summary | |
---|---|
private static String |
BIB_ANCHOR_PREFIX
The anchor prefix used for citations in tests |
private static String |
BIB_URL
The URL of the bibliography file used for citations in tests |
static boolean |
DEBUG
|
private static int |
STATUS_ERROR
Status flag for error exit. |
private static int |
STATUS_NORMAL
Status flag for normal exit. |
static boolean |
gateMainFrameIsOn
|
static Logger |
slgr
SInS (plain) logger |
Constructor Summary | |
YamCommand()
Construction. |
Method Summary | |
---|---|
static void
|
errorExit(String message)
Display an error message and exit |
String
|
getVersion()
Get the language version number. |
static void
|
help()
Display a help message |
static void
|
main(String[] args)
Main function. |
String
|
printErrors(YamParseTree parseTree)
Print errors and warnings from parsing. |
YamParseTree
|
translate(Reader yamReader, Writer outputWriter, def outputType, File sourceDir)
Translate to a particular target language. |
void
|
translate(def outputType, Writer outputWriter, YamParseTree parseTree, IOHandler ioHandler)
Construct an appropriate translator for the target language and run it. |
static void
|
usage()
Display a usage message |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
private static String BIB_ANCHOR_PREFIX
private static String BIB_URL
static final boolean DEBUG
private static final int STATUS_ERROR
private static final int STATUS_NORMAL
static boolean gateMainFrameIsOn
static Logger slgr
Constructor Detail |
---|
public YamCommand()
Method Detail |
---|
public static void errorExit(String message)
public String getVersion()
public static void help()
public static void main(String[] args)
public String printErrors(YamParseTree parseTree)
public YamParseTree translate(Reader yamReader, Writer outputWriter, def outputType, File sourceDir)
public void translate(def outputType, Writer outputWriter, YamParseTree parseTree, IOHandler ioHandler)
public static void usage()
Groovy Documentation