Groovy Documentation

java.gate.wiki.antlr
Class HTMLTarget

java.lang.Object
  java.gate.wiki.antlr.NOPTarget
      java.gate.wiki.antlr.HTMLTarget

class HTMLTarget
extends NOPTarget

Field Summary
static int HEADING_DEPTH

The depth of titles in an HTML file, for examp1e

...

protected static Hashtable HTML_map

Used by the c() method

protected static StringBuffer fileContents

Collects the output from the file so that the table of contents can be added before the rest of the output.

protected static int[] headingCount

Keeps track of the heading numbering

protected static boolean inContents

protected static StringBuffer tableOfContents

Collects the contents of the Table of Contents

 
Fields inherited from class NOPTarget
lastCommand, out
 
Constructor Summary
HTMLTarget()

HTMLTarget(Writer out)

 
Method Summary
void anchor(String name)

protected String angleBracketsEscape(String q)

void begin()

insert head.html if found

String beginBF()

String beginEM()

void beginListItem(int level)

void beginSection(String title, 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)

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)

void footnote(YAMContext context, Vector args)

String getTargetLanguage()

void hr()

void image(YAMContext context, Vector args)

Former plugins were turned into methods

void italic(String t)

void linebreak()

void link(String url, String title)

void longdash()

void notes(YAMContext context, Vector args)

void paragraph()

protected void resetContents()

This function NEEDS to be here.

void row()

protected String strip(String s)

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)

protected void write(String s)

 
Methods inherited from class NOPTarget
anchor, begin, beginBF, beginEM, beginListItem, beginSection, beginSectionList, beginTT, begin_ol, begin_table, begin_ul, blankline, blockquote, bold, box, c, cite, code, col, contents, date, delete, end, endBF, endEM, endListItem, endSection, endSectionList, endTT, end_ol, end_table, end_ul, eps, extractLastCommand, footnote, getLastOutputCommand, getTargetLanguage, hr, image, include, italic, linebreak, link, longdash, notes, paragraph, row, syndiag, text, title, tree, tt, verbatim, wikilink, write, writeln
 

Field Detail

HEADING_DEPTH

static int HEADING_DEPTH
The depth of titles in an HTML file, for examp1e

...


HTML_map

protected static Hashtable HTML_map
Used by the c() method


fileContents

protected static StringBuffer fileContents
Collects the output from the file so that the table of contents can be added before the rest of the output.


headingCount

protected static int[] headingCount
Keeps track of the heading numbering


inContents

protected static boolean inContents


tableOfContents

protected static StringBuffer tableOfContents
Collects the contents of the Table of Contents


 
Constructor Detail

HTMLTarget

public HTMLTarget()


HTMLTarget

public HTMLTarget(Writer out)


 
Method Detail

anchor

public void anchor(String name)


angleBracketsEscape

protected String angleBracketsEscape(String q)


begin

public void begin()
insert head.html if found


beginBF

public String beginBF()


beginEM

public String beginEM()


beginListItem

public void beginListItem(int level)


beginSection

public void beginSection(String title, int level)


beginTT

public String beginTT()


begin_ol

public void begin_ol(int level)


begin_table

public void begin_table()


begin_ul

public void begin_ul(int level)


blankline

public void blankline()


blockquote

public void blockquote(String q)


bold

public void bold(String t)


box

public void box(YAMContext context, Vector args)


c

public void c(YAMContext context, Vector args)


cite

public void cite(YAMContext context, Vector args)


code

public void code(String c)


col

public void col()


contents

public void contents()


date

public void date(YAMContext context, Vector args)


delete

public void delete(YAMContext context, Vector args)


end

public void end()
insert tail.html if found


endBF

public String endBF()


endEM

public String endEM()


endListItem

public void endListItem(int level)


endTT

public String endTT()


end_ol

public void end_ol(int level)


end_table

public void end_table()


end_ul

public void end_ul(int level)


eps

public void eps(YAMContext context, Vector args)


extractLastCommand

protected String extractLastCommand(String text)


footnote

public void footnote(YAMContext context, Vector args)


getTargetLanguage

public String getTargetLanguage()


hr

public void hr()


image

public void image(YAMContext context, Vector args)
Former plugins were turned into methods


italic

public void italic(String t)


linebreak

public void linebreak()


link

public void link(String url, String title)


longdash

public void longdash()


notes

public void notes(YAMContext context, Vector args)


paragraph

public void paragraph()


resetContents

protected void resetContents()
This function NEEDS to be here. If Tool.run is invoked from the same class more than once in a row all the static variables retain their values, so they need to be reset


row

public void row()


strip

protected String strip(String s)


syndiag

public void syndiag(YAMContext context, Vector args)


text

public void text(String t)


title

public void title(String title)


tree

public void tree(YAMContext context, Vector args)


tt

public void tt(String t)


verbatim

public void verbatim(String rawOutput)


write

protected void write(String s)


 

Groovy Documentation