Groovy Documentation

java.gate.wiki.antlr
Class DefaultYAMEngine

java.lang.Object
  java.gate.wiki.antlr.YAMLexer
      java.gate.wiki.antlr.DefaultYAMEngine

class DefaultYAMEngine
extends YAMLexer

Field Summary
 
Fields inherited from class YAMLexer
context, inTable, inTitle
 
Constructor Summary
DefaultYAMEngine(Reader in, YAMContext context)

DefaultYAMEngine(Reader in)

 
Method Summary
protected void captureText()

protected void closeAllLists()

protected void closeAllLists(int level)

protected void closeList()

protected void closeSectionsToLevel(int level)

Close levels sectionLevel..level

protected void define(String id, String value)

protected void ol(int level)

protected void plugin(String id, Vector args)

protected void section(String text, int level)

protected void title(String title)

void translate(YAMTarget target)

Begin on-the-fly syntax-directed translation

static void translate(YAMContext context, YAMTarget target, String inputName, String text)

Given a target and current YAM context to exec within, translate the given text to the appropriate output language.

private String trim(String t)

Remove the *x* and {x} etc.. from front/back

private String trim2(String t)

Remove the <>from front/back

protected void ul(int level)

protected void variable(String id)

 
Methods inherited from class YAMLexer
captureText, closeAllLists, closeAllLists, closeList, closeSectionsToLevel, define, getContext, getTarget, mANCHOR, mARG, mARGLIST, mBLANK, mBLANK_LINE_THEN_MARKUP, mBLOCKQUOTE, mBOLD, mBR, mCODE, mCOL_SEP, mEND_TABLE, mESC, mESC2, mID, mINQUOTE, mITALIC, mLEFT_EDGE_MARKUP, mLEVEL, mLINE_START_THEN_MARKUP, mLINK, mLONGDASH, mNESTED_PAREN, mNOT_SPECIAL_CHAR, mPLUGIN, mROW_SEP, mSECTION, mSTRING, mTABLE, mTEXT, mTEXT_TIL_END_ARG, mTITLE, mTOP_PAREN, mTT, mWS, mWS2, nextToken, ol, plugin, section, setContext, title, translate, ul, variable
 

Constructor Detail

DefaultYAMEngine

public DefaultYAMEngine(Reader in, YAMContext context)


DefaultYAMEngine

public DefaultYAMEngine(Reader in)


 
Method Detail

captureText

protected void captureText()


closeAllLists

protected void closeAllLists()


closeAllLists

protected void closeAllLists(int level)


closeList

protected void closeList()


closeSectionsToLevel

protected void closeSectionsToLevel(int level)
Close levels sectionLevel..level


define

protected void define(String id, String value)


ol

protected void ol(int level)


plugin

protected void plugin(String id, Vector args)


section

protected void section(String text, int level)


title

protected void title(String title)


translate

public void translate(YAMTarget target)
Begin on-the-fly syntax-directed translation


translate

public static void translate(YAMContext context, YAMTarget target, String inputName, String text)
Given a target and current YAM context to exec within, translate the given text to the appropriate output language.


trim

private String trim(String t)
Remove the *x* and {x} etc.. from front/back


trim2

private String trim2(String t)
Remove the <>from front/back


ul

protected void ul(int level)


variable

protected void variable(String id)


 

Groovy Documentation