gate.wiki.antlr
Class LoutTarget

java.lang.Object
  extended by gate.wiki.antlr.NOPTarget
      extended by gate.wiki.antlr.LoutTarget
All Implemented Interfaces:
YAMTarget

public class LoutTarget
extends NOPTarget


Field Summary
protected  boolean generateSlides
           
 
Fields inherited from class gate.wiki.antlr.NOPTarget
lastCommand, out
 
Constructor Summary
LoutTarget()
           
LoutTarget(String args)
           
LoutTarget(Writer out)
           
 
Method Summary
 void begin_ol(int level)
           
 void begin_table()
           
 void begin_ul(int level)
           
 void begin()
          insert head.html if found
 void beginListItem(int level)
           
 void beginSection(String title, int level)
           
 void beginSectionList(int level)
           
 void blankline()
          They want a blank line without signaling a new paragraph.
 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)
          Former plugins
 void code(String c)
           
 void col()
           
 void end_ol(int level)
           
 void end_table()
           
 void end_ul(int level)
           
 void end()
          insert tail.hYAM if found
 void endListItem(int level)
           
 void endSection(int level)
           
 void endSectionList(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)
           
 String getTargetLanguage()
          Typically "HTML", or "Lout"
 void image(YAMContext context, Vector args)
          Former plugins
 boolean isGeneratingSlides()
           
 void italic(String t)
           
 void linebreak()
          They want a new line in a paragraph
 void link(String url, String title)
           
 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)
          Assume rawOutput is in output language and just dump
 
Methods inherited from class gate.wiki.antlr.NOPTarget
anchor, beginBF, beginEM, beginTT, contents, date, delete, endBF, endEM, endTT, getLastOutputCommand, hr, include, longdash, wikilink, write, writeln
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generateSlides

protected boolean generateSlides
Constructor Detail

LoutTarget

public LoutTarget()

LoutTarget

public LoutTarget(String args)

LoutTarget

public LoutTarget(Writer out)
Method Detail

getTargetLanguage

public String getTargetLanguage()
Description copied from interface: YAMTarget
Typically "HTML", or "Lout"

Specified by:
getTargetLanguage in interface YAMTarget
Overrides:
getTargetLanguage in class NOPTarget

extractLastCommand

protected String extractLastCommand(String text)
Description copied from class: NOPTarget
Subclasses should implement this; i.e., pull out <...>or ID. Groovy because you get a list like this when you from say paragraph(): last cmd=[@Heading] last cmd=[@LP] last cmd=[@EndList] last cmd=[@Begin]

Overrides:
extractLastCommand in class NOPTarget

begin

public void begin()
Description copied from class: NOPTarget
insert head.html if found

Specified by:
begin in interface YAMTarget
Overrides:
begin in class NOPTarget

end

public void end()
insert tail.hYAM if found

Specified by:
end in interface YAMTarget
Overrides:
end in class NOPTarget

text

public void text(String t)
Specified by:
text in interface YAMTarget
Overrides:
text in class NOPTarget

bold

public void bold(String t)
Specified by:
bold in interface YAMTarget
Overrides:
bold in class NOPTarget

italic

public void italic(String t)
Specified by:
italic in interface YAMTarget
Overrides:
italic in class NOPTarget

tt

public void tt(String t)
Specified by:
tt in interface YAMTarget
Overrides:
tt in class NOPTarget

beginListItem

public void beginListItem(int level)
Specified by:
beginListItem in interface YAMTarget
Overrides:
beginListItem in class NOPTarget

endListItem

public void endListItem(int level)
Specified by:
endListItem in interface YAMTarget
Overrides:
endListItem in class NOPTarget

begin_ul

public void begin_ul(int level)
Specified by:
begin_ul in interface YAMTarget
Overrides:
begin_ul in class NOPTarget

end_ul

public void end_ul(int level)
Specified by:
end_ul in interface YAMTarget
Overrides:
end_ul in class NOPTarget

begin_ol

public void begin_ol(int level)
Specified by:
begin_ol in interface YAMTarget
Overrides:
begin_ol in class NOPTarget

end_ol

public void end_ol(int level)
Specified by:
end_ol in interface YAMTarget
Overrides:
end_ol in class NOPTarget

paragraph

public void paragraph()
Specified by:
paragraph in interface YAMTarget
Overrides:
paragraph in class NOPTarget

linebreak

public void linebreak()
Description copied from interface: YAMTarget
They want a new line in a paragraph

Specified by:
linebreak in interface YAMTarget
Overrides:
linebreak in class NOPTarget

blankline

public void blankline()
Description copied from interface: YAMTarget
They want a blank line without signaling a new paragraph. Useful for new "paragraphs" within a single bullet.

Specified by:
blankline in interface YAMTarget
Overrides:
blankline in class NOPTarget

code

public void code(String c)
Specified by:
code in interface YAMTarget
Overrides:
code in class NOPTarget

verbatim

public void verbatim(String rawOutput)
Description copied from interface: YAMTarget
Assume rawOutput is in output language and just dump

Specified by:
verbatim in interface YAMTarget
Overrides:
verbatim in class NOPTarget

blockquote

public void blockquote(String q)
Specified by:
blockquote in interface YAMTarget
Overrides:
blockquote in class NOPTarget

link

public void link(String url,
                 String title)
Specified by:
link in interface YAMTarget
Overrides:
link in class NOPTarget

title

public void title(String title)
Specified by:
title in interface YAMTarget
Overrides:
title in class NOPTarget

beginSectionList

public void beginSectionList(int level)
Specified by:
beginSectionList in interface YAMTarget
Overrides:
beginSectionList in class NOPTarget

endSectionList

public void endSectionList(int level)
Specified by:
endSectionList in interface YAMTarget
Overrides:
endSectionList in class NOPTarget

beginSection

public void beginSection(String title,
                         int level)
Specified by:
beginSection in interface YAMTarget
Overrides:
beginSection in class NOPTarget

endSection

public void endSection(int level)
Specified by:
endSection in interface YAMTarget
Overrides:
endSection in class NOPTarget

begin_table

public void begin_table()
Specified by:
begin_table in interface YAMTarget
Overrides:
begin_table in class NOPTarget

end_table

public void end_table()
Specified by:
end_table in interface YAMTarget
Overrides:
end_table in class NOPTarget

col

public void col()
Specified by:
col in interface YAMTarget
Overrides:
col in class NOPTarget

row

public void row()
Specified by:
row in interface YAMTarget
Overrides:
row in class NOPTarget

isGeneratingSlides

public boolean isGeneratingSlides()

image

public void image(YAMContext context,
                  Vector args)
Former plugins

Specified by:
image in interface YAMTarget
Overrides:
image in class NOPTarget

cite

public void cite(YAMContext context,
                 Vector args)
Description copied from interface: YAMTarget
Former plugins

Specified by:
cite in interface YAMTarget
Overrides:
cite in class NOPTarget

box

public void box(YAMContext context,
                Vector args)
Specified by:
box in interface YAMTarget
Overrides:
box in class NOPTarget

c

public void c(YAMContext context,
              Vector args)
Specified by:
c in interface YAMTarget
Overrides:
c in class NOPTarget

eps

public void eps(YAMContext context,
                Vector args)
Specified by:
eps in interface YAMTarget
Overrides:
eps in class NOPTarget

footnote

public void footnote(YAMContext context,
                     Vector args)
Specified by:
footnote in interface YAMTarget
Overrides:
footnote in class NOPTarget

notes

public void notes(YAMContext context,
                  Vector args)
Specified by:
notes in interface YAMTarget
Overrides:
notes in class NOPTarget

syndiag

public void syndiag(YAMContext context,
                    Vector args)
Specified by:
syndiag in interface YAMTarget
Overrides:
syndiag in class NOPTarget

tree

public void tree(YAMContext context,
                 Vector args)
Specified by:
tree in interface YAMTarget
Overrides:
tree in class NOPTarget