|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.wiki.antlr.NOPTarget
class NOPTarget
This class represents the NOP translation and can be used to check syntax of your YAM input. More importantly, it is a useful superclass for translation targets because when I add features later the targets by default ignore these enhancements--avoiding the cost of modifying every target. The cost is a loss of compile-error when you don't implement a feature. Some useful support routines here. Using write/writeln is good because it buffers the last output string. For example, If you need to avoid generating a paragraph symbol after a list because it makes too much space, you can look back to see what you just generated.
Field Summary | |
---|---|
protected String |
lastCommand
|
protected Writer |
out
|
Constructor Summary | |
NOPTarget()
|
Method Summary | |
---|---|
void
|
anchor(String name)
|
void
|
begin()
insert head.html if found |
String
|
beginBF()
|
String
|
beginEM()
|
void
|
beginListItem(int level)
|
void
|
beginSection(String title, int level)
|
void
|
beginSectionList(int level)
|
String
|
beginTT()
|
void
|
begin_ol(int level)
|
void
|
begin_table()
|
void
|
begin_ul(int level)
|
void
|
blankline()
|
void
|
blockquote(String q)
|
void
|
bold(String t)
|
void
|
box(YAMContext context, Vector args)
|
void
|
c(YAMContext context, Vector args)
|
void
|
cite(YAMContext context, Vector args)
|
void
|
code(String c)
|
void
|
col()
|
void
|
contents()
|
void
|
date(YAMContext context, Vector args)
|
void
|
delete(YAMContext context, Vector args)
|
void
|
end()
insert tail.html if found |
String
|
endBF()
|
String
|
endEM()
|
void
|
endListItem(int level)
|
void
|
endSection(int level)
|
void
|
endSectionList(int level)
|
String
|
endTT()
|
void
|
end_ol(int level)
|
void
|
end_table()
|
void
|
end_ul(int level)
|
void
|
eps(YAMContext context, Vector args)
|
protected String
|
extractLastCommand(String text)
Subclasses should implement this; i.e., pull out <... |
void
|
footnote(YAMContext context, Vector args)
|
protected String
|
getLastOutputCommand()
|
String
|
getTargetLanguage()
|
void
|
hr()
|
void
|
image(YAMContext context, Vector args)
Former plugins |
void
|
include(YAMContext context, Vector args)
|
void
|
italic(String t)
|
void
|
linebreak()
|
void
|
link(String url, String title)
|
void
|
longdash()
|
void
|
notes(YAMContext context, Vector args)
|
void
|
paragraph()
|
void
|
row()
|
void
|
syndiag(YAMContext context, Vector args)
|
void
|
text(String t)
|
void
|
title(String title)
|
void
|
tree(YAMContext context, Vector args)
|
void
|
tt(String t)
|
void
|
verbatim(String rawOutput)
|
void
|
wikilink(String url, String title)
|
protected void
|
write(String s)
|
protected void
|
writeln(String s)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
protected String lastCommand
protected Writer out
Constructor Detail |
---|
NOPTarget()
Method Detail |
---|
public void anchor(String name)
public void begin()
public String beginBF()
public String beginEM()
public void beginListItem(int level)
public void beginSection(String title, int level)
public void beginSectionList(int level)
public String beginTT()
public void begin_ol(int level)
public void begin_table()
public void begin_ul(int level)
public void blankline()
public void blockquote(String q)
public void bold(String t)
public void box(YAMContext context, Vector args)
public void c(YAMContext context, Vector args)
public void cite(YAMContext context, Vector args)
public void code(String c)
public void col()
public void contents()
public void date(YAMContext context, Vector args)
public void delete(YAMContext context, Vector args)
public void end()
public String endBF()
public String endEM()
public void endListItem(int level)
public void endSection(int level)
public void endSectionList(int level)
public String endTT()
public void end_ol(int level)
public void end_table()
public void end_ul(int level)
public void eps(YAMContext context, Vector args)
protected String extractLastCommand(String text)
public void footnote(YAMContext context, Vector args)
protected String getLastOutputCommand()
public String getTargetLanguage()
public void hr()
public void image(YAMContext context, Vector args)
public void include(YAMContext context, Vector args)
public void italic(String t)
public void linebreak()
public void link(String url, String title)
public void longdash()
public void notes(YAMContext context, Vector args)
public void paragraph()
public void row()
public void syndiag(YAMContext context, Vector args)
public void text(String t)
public void title(String title)
public void tree(YAMContext context, Vector args)
public void tt(String t)
public void verbatim(String rawOutput)
public void wikilink(String url, String title)
protected void write(String s)
protected void writeln(String s)
Groovy Documentation