org.wikimodel.wem.xwiki.javacc
Class XWikiScanner
java.lang.Object
org.wikimodel.wem.xwiki.javacc.XWikiScanner
- All Implemented Interfaces:
- XWikiScannerConstants
public class XWikiScanner
- extends Object
- implements XWikiScannerConstants
This is the internal wiki page parser generated from the grammar file.
- Author:
- kotelnikov
| Fields inherited from interface org.wikimodel.wem.xwiki.javacc.XWikiScannerConstants |
ALPHA, BR, CELL, CHAR, D_BLOCK_PARAMS, D_BR, D_DOC_BEGIN, D_DOC_END, D_FORMAT_SYMBOL, D_HEADER_BEGIN, D_HEADER_END, D_HORLINE, D_INLINE_PARAMS, D_LIST_ITEM, D_MACRO_BLOCK_START, D_MACRO_EMPTY_BLOCK, D_MACRO_EMPTY_INLINE, D_MACRO_INLINE_START, D_NL, D_QUOT_LINE, D_REFERENCE, D_SPECIAL_SYMBOL, D_TABLE_CELL, D_TABLE_ROW, D_VERBATIM_START, D_WORD, D_XWIKI_SPACE, D_XWIKI_URI, DEFAULT, DIGIT, DOC_BEGIN, DOC_END, EOF, FORMAT_SYMBOL, HEADER, HEXDIG, HORLINE, I_BLOCK_PARAMS, I_BR, I_DOC_BEGIN, I_DOC_END, I_FORMAT_SYMBOL, I_HEADER_BEGIN, I_HEADER_END, I_HORLINE, I_INLINE_PARAMS, I_LIST_ITEM, I_MACRO_BLOCK_START, I_MACRO_EMPTY_BLOCK, I_MACRO_EMPTY_INLINE, I_MACRO_INLINE_START, I_NL, I_QUOT_LINE, I_REFERENCE, I_SPECIAL_SYMBOL, I_TABLE_CELL, I_TABLE_ROW, I_VERBATIM_START, I_WORD, I_XWIKI_SPACE, I_XWIKI_URI, INITIAL_CONTEXT, INTERNAL_MACRO_CONTENT, INTERNAL_MACRO_END, INTERNAL_MACRO_START, INTERNAL_VERBATIM_CONTENT, INTERNAL_VERBATIM_END, INTERNAL_VERBATIM_START, LI, MACRO_CONTENT, MACRO_CONTEXT, MACRO_DEF, MACRO_EMPTY, MACRO_END, MACRO_NAME, MACRO_START, NEW_LINE, PARAMS, QUOT_LINE, REFERENCE, REFERENCE_IMAGE, SPACE, SPECIAL_SYMBOL, tokenImage, URI, URI_AUTHORITY, URI_FRAGMENT, URI_GEN_DELIMS, URI_HIER_PART, URI_HOST, URI_PATH_ABEMPTY, URI_PATH_ABSOLUTE, URI_PATH_ROOTLESS, URI_PCHAR, URI_PCHAR_FIRST, URI_PCT_ENCODED, URI_PORT, URI_QUERY, URI_REG_NAME, URI_RESERVED, URI_SCHEME, URI_SCHEME_COMPOSITE, URI_SEGMENT, URI_SEGMENT_NZ, URI_SEGMENT_NZ_NC, URI_SUB_DELIMS, URI_UNRESERVED, URI_USERINFO, VERBATIM_CONTENT, VERBATIM_CONTEXT, VERBATIM_END, VERBATIM_START, XWIKI_CHAR, XWIKI_SPACE, XWIKI_SPECIAL_SYMBOL, XWIKI_URI, XWIKI_URI_URIS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public XWikiScannerTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
XWikiScanner
public XWikiScanner(InputStream stream)
XWikiScanner
public XWikiScanner(InputStream stream,
String encoding)
XWikiScanner
public XWikiScanner(Reader stream)
XWikiScanner
public XWikiScanner(XWikiScannerTokenManager tm)
parse
public void parse(IWikiScannerContext context)
throws ParseException
- Throws:
ParseException
newWikiParameters
protected WikiParameters newWikiParameters(String str)
getINTERNAL_VERBATIM_START
public final Token getINTERNAL_VERBATIM_START()
throws ParseException
- Throws:
ParseException
getINTERNAL_VERBATIM_END
public final Token getINTERNAL_VERBATIM_END()
throws ParseException
- Throws:
ParseException
getINTERNAL_VERBATIM_CONTENT
public final Token getINTERNAL_VERBATIM_CONTENT()
throws ParseException
- Throws:
ParseException
getINTERNAL_MACRO_START
public final Token getINTERNAL_MACRO_START()
throws ParseException
- Throws:
ParseException
getINTERNAL_MACRO_END
public final Token getINTERNAL_MACRO_END()
throws ParseException
- Throws:
ParseException
getINTERNAL_MACRO_CONTENT
public final Token getINTERNAL_MACRO_CONTENT()
throws ParseException
- Throws:
ParseException
getDOC_BEGIN
public final Token getDOC_BEGIN()
throws ParseException
- Throws:
ParseException
getDOC_END
public final Token getDOC_END()
throws ParseException
- Throws:
ParseException
getLIST_ITEM
public final Token getLIST_ITEM()
throws ParseException
- Throws:
ParseException
getHEADER_BEGIN
public final Token getHEADER_BEGIN()
throws ParseException
- Throws:
ParseException
getHEADER_END
public final Token getHEADER_END()
throws ParseException
- Throws:
ParseException
getHORLINE
public final Token getHORLINE()
throws ParseException
- Throws:
ParseException
getTABLE_ROW
public final Token getTABLE_ROW()
throws ParseException
- Throws:
ParseException
getTABLE_CELL
public final Token getTABLE_CELL()
throws ParseException
- Throws:
ParseException
getREFERENCE
public final Token getREFERENCE()
throws ParseException
- Throws:
ParseException
getVERBATIM_START
public final Token getVERBATIM_START()
throws ParseException
- Throws:
ParseException
getMACRO_EMPTY_BLOCK
public final Token getMACRO_EMPTY_BLOCK()
throws ParseException
- Throws:
ParseException
getMACRO_BLOCK_START
public final Token getMACRO_BLOCK_START()
throws ParseException
- Throws:
ParseException
getMACRO_EMPTY_INLINE
public final Token getMACRO_EMPTY_INLINE()
throws ParseException
- Throws:
ParseException
getMACRO_INLINE_START
public final Token getMACRO_INLINE_START()
throws ParseException
- Throws:
ParseException
getFORMAT_SYMBOL
public final Token getFORMAT_SYMBOL()
throws ParseException
- Throws:
ParseException
getBR
public final Token getBR()
throws ParseException
- Throws:
ParseException
getBLOCK_PARAMS
public final Token getBLOCK_PARAMS()
throws ParseException
- Throws:
ParseException
getINLINE_PARAMS
public final Token getINLINE_PARAMS()
throws ParseException
- Throws:
ParseException
getQUOT_LINE
public final Token getQUOT_LINE()
throws ParseException
- Throws:
ParseException
getXWIKI_URI
public final Token getXWIKI_URI()
throws ParseException
- Throws:
ParseException
getXWIKI_SPACE
public final Token getXWIKI_SPACE()
throws ParseException
- Throws:
ParseException
getNL
public final Token getNL()
throws ParseException
- Throws:
ParseException
getWORD
public final Token getWORD()
throws ParseException
- Throws:
ParseException
getSPECIAL_SYMBOL
public final Token getSPECIAL_SYMBOL()
throws ParseException
- Throws:
ParseException
doParse
public final void doParse()
throws ParseException
- Throws:
ParseException
docElements
public final void docElements()
throws ParseException
- Throws:
ParseException
embeddedDocument
public final void embeddedDocument()
throws ParseException
- Throws:
ParseException
header
public final void header()
throws ParseException
- Throws:
ParseException
table
public final void table()
throws ParseException
- Throws:
ParseException
tableRow
public final void tableRow()
throws ParseException
- Throws:
ParseException
list
public final void list()
throws ParseException
- Throws:
ParseException
listItem
public final void listItem()
throws ParseException
- Throws:
ParseException
block
public final void block()
throws ParseException
- Throws:
ParseException
verbatimBlock
public final void verbatimBlock()
throws ParseException
- Throws:
ParseException
verbatimBody
public final void verbatimBody(boolean inline,
WikiParameters params)
throws ParseException
- Throws:
ParseException
macroBlock
public final void macroBlock()
throws ParseException
- Throws:
ParseException
sendOnEmptyLinesEvent
public final void sendOnEmptyLinesEvent(boolean shouldIncrement)
throws ParseException
- If shouldIncrement is true send one more empty lines. All block
elements other than paragraph should call shouldIncremet with
true since we need to emit one more new line for them (since the
lexer "eats" a NewLine token to recognize these block elements.
- Throws:
ParseException
emptyMacro
public final void emptyMacro(Token t,
boolean block)
throws ParseException
- Throws:
ParseException
macro
public final void macro(Token t,
boolean block)
throws ParseException
- Throws:
ParseException
horline
public final void horline()
throws ParseException
- Throws:
ParseException
paragraph
public final void paragraph()
throws ParseException
- Throws:
ParseException
quot
public final void quot()
throws ParseException
- Throws:
ParseException
quotLine
public final void quotLine()
throws ParseException
- Throws:
ParseException
emptyParagraph
public final void emptyParagraph()
throws ParseException
- Throws:
ParseException
lines
public final void lines()
throws ParseException
- Throws:
ParseException
newLine
public final void newLine()
throws ParseException
- Throws:
ParseException
line
public final void line()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(InputStream stream,
String encoding)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(XWikiScannerTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2005-2009. All Rights Reserved.