|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.yam.translate.AbstractTranslator gate.yam.translate.PrettyTranslator
public class PrettyTranslator
This class is a pretty-printer for YAM documents. It takes a parse tree as input, munges the whitespace in the Token images, and prints it to the supplied writer.
Field Summary | |
---|---|
static boolean |
pleaseLeakLotsOfMemory
For debugging, set this true and the GATE docs that the translator creates will not be deleted. |
Fields inherited from class gate.yam.translate.AbstractTranslator |
---|
translatorType |
Fields inherited from interface gate.yam.translate.TranslationConstants |
---|
CONSTANTEND, CONSTANTNAME, CONSTANTSTART |
Constructor Summary | |
---|---|
PrettyTranslator()
Construction. |
Method Summary | |
---|---|
String[][] |
getConstantsTable()
Array mapping node type name to start/end strings. |
String |
getPreamblePath()
Get the path to the preamble resource. |
Object[][] |
getPredicatesTable()
Array mapping predicate type name to attributes. |
void |
processURLs(SimpleNode node)
Process URLs and Anchors. |
Writer |
translate()
Translation. |
Methods inherited from class gate.yam.translate.AbstractTranslator |
---|
addToFooter, getConstantEnd, getConstantStart, makeContents, makePreamble, printEndNotes, printTree, printTree, printTree, setIOHandler, setParseTree, setWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean pleaseLeakLotsOfMemory
Constructor Detail |
---|
public PrettyTranslator()
Method Detail |
---|
public String getPreamblePath()
public String[][] getConstantsTable()
public Object[][] getPredicatesTable()
public Writer translate() throws gate.util.GateException
translate
in class AbstractTranslator
gate.util.GateException
public void processURLs(SimpleNode node) throws gate.util.GateException
processURLs
in class AbstractTranslator
gate.util.GateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |