|
||||||||||
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.TreeTranslator
public class TreeTranslator
This class prints the parse tree for a YAM document. It is intended for testing and debugging.
Field Summary |
---|
Fields inherited from class gate.yam.translate.AbstractTranslator |
---|
translatorType |
Fields inherited from interface gate.yam.translate.TranslationConstants |
---|
CONSTANTEND, CONSTANTNAME, CONSTANTSTART |
Constructor Summary | |
---|---|
TreeTranslator()
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. |
void |
traverse(String prefix,
SimpleNode node)
Traverse a subtree. |
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 |
Constructor Detail |
---|
public TreeTranslator()
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 traverse(String prefix, SimpleNode node) throws gate.util.GateException
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 |