|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.CharScanner gate.wiki.antlr.YAMLexer gate.wiki.antlr.DefaultYAMEngine
public class DefaultYAMEngine
Field Summary |
---|
Fields inherited from class gate.wiki.antlr.YAMLexer |
---|
_tokenSet_0, _tokenSet_1, _tokenSet_10, _tokenSet_11, _tokenSet_12, _tokenSet_13, _tokenSet_14, _tokenSet_15, _tokenSet_16, _tokenSet_17, _tokenSet_18, _tokenSet_19, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9, context, inTable, inTitle, target |
Fields inherited from class antlr.CharScanner |
---|
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth |
Fields inherited from interface gate.wiki.antlr.YAMLexerTokenTypes |
---|
ANCHOR, ARG, ARGLIST, BLANK, BLANK_LINE_THEN_MARKUP, BLOCKQUOTE, BOLD, BR, CODE, COL_SEP, END_TABLE, EOF, ESC, ESC2, ID, INQUOTE, ITALIC, LEFT_EDGE_MARKUP, LEVEL, LINE_START_THEN_MARKUP, LINK, LONGDASH, NESTED_PAREN, NOT_SPECIAL_CHAR, NULL_TREE_LOOKAHEAD, PLUGIN, ROW_SEP, SECTION, STRING, TABLE, TEXT, TEXT_TIL_END_ARG, TITLE, TOP_PAREN, TT, WS, WS2 |
Constructor Summary | |
---|---|
DefaultYAMEngine(Reader in)
|
|
DefaultYAMEngine(Reader in,
YAMContext context)
|
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)
|
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. |
void |
translate(YAMTarget target)
Begin on-the-fly syntax-directed translation |
protected void |
ul(int level)
|
protected void |
variable(String id)
|
Methods inherited from class gate.wiki.antlr.YAMLexer |
---|
getContext, getTarget, mANCHOR, mARG, mARGLIST, mBLANK_LINE_THEN_MARKUP, mBLANK, 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_TIL_END_ARG, mTEXT, mTITLE, mTOP_PAREN, mTT, mWS, mWS2, nextToken, setContext |
Methods inherited from class antlr.CharScanner |
---|
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultYAMEngine(Reader in, YAMContext context)
public DefaultYAMEngine(Reader in)
Method Detail |
---|
public void translate(YAMTarget target) throws antlr.TokenStreamException
translate
in class YAMLexer
antlr.TokenStreamException
protected void closeAllLists()
closeAllLists
in class YAMLexer
protected void closeAllLists(int level)
closeAllLists
in class YAMLexer
protected void closeList()
closeList
in class YAMLexer
protected void captureText()
captureText
in class YAMLexer
protected void ul(int level)
ul
in class YAMLexer
protected void ol(int level)
ol
in class YAMLexer
protected void closeSectionsToLevel(int level)
closeSectionsToLevel
in class YAMLexer
protected void section(String text, int level)
section
in class YAMLexer
protected void title(String title)
title
in class YAMLexer
protected void define(String id, String value)
define
in class YAMLexer
protected void plugin(String id, Vector args)
plugin
in class YAMLexer
public static void translate(YAMContext context, YAMTarget target, String inputName, String text) throws antlr.TokenStreamException
antlr.TokenStreamException
protected void variable(String id)
variable
in class YAMLexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |