org.wikimodel.wem.xwiki.javacc
Class XWikiScanner

java.lang.Object
  extended by org.wikimodel.wem.xwiki.javacc.XWikiScanner
All Implemented Interfaces:
XWikiScannerConstants

public class XWikiScanner
extends java.lang.Object
implements XWikiScannerConstants

This is the internal wiki page parser generated from the grammar file.

Author:
kotelnikov, thomas.mortagne

Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 XWikiScannerTokenManager token_source
          Generated Token Manager.
 
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_EMPTY, D_MACRO_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_EMPTY, I_MACRO_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_EMPTY, MACRO_END, MACRO_NAME, MACRO_PARAMS, 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
 
Constructor Summary
XWikiScanner(java.io.InputStream stream)
          Constructor with InputStream.
XWikiScanner(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
XWikiScanner(java.io.Reader stream)
          Constructor.
XWikiScanner(XWikiScannerTokenManager tm)
          Constructor with generated Token Manager.
 
Method Summary
 void block()
           
 void disable_tracing()
          Disable tracing.
 void docElements()
           
 void doParse()
           
 void embeddedDocument()
           
 void emptyMacro(Token t, boolean inline)
           
 void emptyParagraph()
           
 void enable_tracing()
          Enable tracing.
 void followHeaderEnd()
           
 void followMacroBlock()
           
 void followVerbatimBlock()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getBLOCK_PARAMS()
           
 Token getBR()
           
 Token getDOC_BEGIN()
           
 Token getDOC_END()
           
 Token getFORMAT_SYMBOL()
           
 Token getHEADER_BEGIN()
           
 Token getHEADER_END()
           
 Token getHORLINE()
           
 Token getINLINE_PARAMS()
           
 Token getINTERNAL_MACRO_CONTENT()
           
 Token getINTERNAL_MACRO_END()
           
 Token getINTERNAL_MACRO_START()
           
 Token getINTERNAL_VERBATIM_CONTENT()
           
 Token getINTERNAL_VERBATIM_END()
           
 Token getINTERNAL_VERBATIM_START()
           
 Token getLIST_ITEM()
           
 Token getMACRO_EMPTY()
           
 Token getMACRO_START()
           
 Token getNextToken()
          Get the next Token.
 Token getNL()
           
 Token getQUOT_LINE()
           
 Token getREFERENCE()
           
 Token getSPECIAL_SYMBOL()
           
 Token getTABLE_CELL()
           
 Token getTABLE_ROW()
           
 Token getToken(int index)
          Get the specific Token.
 Token getVERBATIM_START()
           
 Token getWORD()
           
 Token getXWIKI_SPACE()
           
 Token getXWIKI_URI()
           
 void header()
           
 void horline()
           
 void line()
           
 void lines()
           
 void list()
           
 void listItem()
           
 void macro(Token t, boolean inline)
           
 void macroBlock()
           
 void macroBody(java.lang.String name, java.lang.String paramStr, boolean inline, java.lang.String content)
           
 void newLine()
           
protected  WikiParameters newWikiParameters(java.lang.String str)
           
 void paragraph()
           
 void parse(IWikiScannerContext context)
           
 void quot()
           
 void quotLine()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 void ReInit(XWikiScannerTokenManager tm)
          Reinitialise.
 void sendOnEmptyLinesEvent(boolean shouldIncrement)
          If shouldIncrement is true send one more empty lines.
 void table()
           
 void tableRow()
           
 void verbatimBlock()
           
 void verbatimBody(boolean inline, WikiParameters params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public XWikiScannerTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

XWikiScanner

public XWikiScanner(java.io.InputStream stream)
Constructor with InputStream.


XWikiScanner

public XWikiScanner(java.io.InputStream stream,
                    java.lang.String encoding)
Constructor with InputStream and supplied encoding


XWikiScanner

public XWikiScanner(java.io.Reader stream)
Constructor.


XWikiScanner

public XWikiScanner(XWikiScannerTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public void parse(IWikiScannerContext context)
           throws ParseException
Throws:
ParseException

newWikiParameters

protected WikiParameters newWikiParameters(java.lang.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

public final Token getMACRO_EMPTY()
                           throws ParseException
Throws:
ParseException

getMACRO_START

public final Token getMACRO_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

followVerbatimBlock

public final void followVerbatimBlock()
                               throws ParseException
Throws:
ParseException

macroBlock

public final void macroBlock()
                      throws ParseException
Throws:
ParseException

emptyMacro

public final void emptyMacro(Token t,
                             boolean inline)
                      throws ParseException
Throws:
ParseException

macro

public final void macro(Token t,
                        boolean inline)
                 throws ParseException
Throws:
ParseException

macroBody

public final void macroBody(java.lang.String name,
                            java.lang.String paramStr,
                            boolean inline,
                            java.lang.String content)
                     throws ParseException
Throws:
ParseException

followMacroBlock

public final void followMacroBlock()
                            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

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

followHeaderEnd

public final void followHeaderEnd()
                           throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(XWikiScannerTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2005-2009. All Rights Reserved.