org.xwiki.rendering.wikimodel.common.javacc
Class CommonWikiScanner

java.lang.Object
  extended by org.xwiki.rendering.wikimodel.common.javacc.CommonWikiScanner
All Implemented Interfaces:
CommonWikiScannerConstants

public class CommonWikiScanner
extends Object
implements CommonWikiScannerConstants

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

This code was originally authored by Mikhail Kotelnikov (Cognium Systems SA) and other contributors (including XWiki committers), under the ASL 2.0 license (http://www.apache.org/licenses/LICENSE-2.0).


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 CommonWikiScannerTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.xwiki.rendering.wikimodel.common.javacc.CommonWikiScannerConstants
ALPHA, BR, CELL, CHAR, D_BLOCK_PARAMS, D_BR, D_DOC_BEGIN, D_DOC_END, D_ESCAPE, D_EXTENSION_BLOCK, D_EXTENSION_INLINE, D_FORMAT_SYMBOL, D_HEADER_BEGIN, D_HEADER_END, D_HORLINE, D_INFO, D_LIST_ITEM, D_MACRO_BLOCK_START, D_MACRO_EMPTY_BLOCK, D_MACRO_EMPTY_INLINE, D_MACRO_INLINE_START, D_NL, D_PROPERTY, D_PROPERTY_DOC, D_PROPERTY_INLINE, D_QUOT_BLOCK, D_QUOT_LINE, D_REFERENCE, D_SPACE, D_SPECIAL_SYMBOL, D_SPECIAL_SYMBOLS, D_TABLE_CELL, D_TABLE_ROW, D_URI, D_VERBATIM_INLINE, D_VERBATIM_INLINE_START, D_VERBATIM_START, D_WORD, DEFAULT, DIGIT, DL, DOC_BEGIN, DOC_END, EOF, ESCAPE, ESCAPED, EXTENSION, FORMAT_SYMBOL, HEADER, HEXDIG, HORLINE, I_BLOCK_PARAMS, I_BR, I_DOC_BEGIN, I_DOC_END, I_ESCAPE, I_EXTENSION_BLOCK, I_EXTENSION_INLINE, I_FORMAT_SYMBOL, I_HEADER_BEGIN, I_HEADER_END, I_HORLINE, I_INFO, I_LIST_ITEM, I_MACRO_BLOCK_START, I_MACRO_EMPTY_BLOCK, I_MACRO_EMPTY_INLINE, I_MACRO_INLINE_START, I_NL, I_PROPERTY, I_PROPERTY_DOC, I_PROPERTY_INLINE, I_QUOT_BLOCK, I_QUOT_LINE, I_REFERENCE, I_SPACE, I_SPECIAL_SYMBOL, I_SPECIAL_SYMBOLS, I_TABLE_CELL, I_TABLE_ROW, I_URI, I_VERBATIM_INLINE, I_VERBATIM_INLINE_START, I_VERBATIM_START, I_WORD, INFO, INITIAL_CONTEXT, INTERNAL_MACRO_CONTENT, INTERNAL_MACRO_END, INTERNAL_MACRO_START, INTERNAL_VERBATIM_CONTENT, INTERNAL_VERBATIM_END, INTERNAL_VERBATIM_START, LI, LIST_ITEM, MACRO_CONTENT, MACRO_CONTEXT, MACRO_EMPTY, MACRO_END, MACRO_NAME, MACRO_START, NEW_LINE, PARAMS, PROPERTY, PROPERTY_DOC, QUOT_BLOCK, QUOT_LINE, REFERENCE, SPACE, SPECIAL_SYMBOL, SPECIAL_SYMBOLS, 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_INLINE, VERBATIM_START
 
Constructor Summary
CommonWikiScanner(CommonWikiScannerTokenManager tm)
          Constructor with generated Token Manager.
CommonWikiScanner(InputStream stream)
          Constructor with InputStream.
CommonWikiScanner(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
CommonWikiScanner(Reader stream)
          Constructor.
 
Method Summary
 void block()
           
 void disable_tracing()
          Disable tracing.
 void docElements()
           
 void doParse()
           
 void embeddedDocument()
           
 void emptyMacro(Token t, boolean block)
           
 void emptyParagraph()
           
 void enable_tracing()
          Enable tracing.
 void extensionBlock()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getBLOCK_PARAMS()
           
 Token getBR()
           
 Token getDOC_BEGIN()
           
 Token getDOC_END()
           
 Token getESCAPE()
           
 Token getEXTENSION_BLOCK()
           
 Token getEXTENSION_INLINE()
           
 Token getFORMAT_SYMBOL()
           
 Token getHEADER_BEGIN()
           
 Token getHEADER_END()
           
 Token getHORLINE()
           
 Token getINFO()
           
 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_BLOCK_START()
           
 Token getMACRO_EMPTY_BLOCK()
           
 Token getMACRO_EMPTY_INLINE()
           
 Token getMACRO_INLINE_START()
           
 Token getNextToken()
          Get the next Token.
 Token getNL()
           
 Token getPROPERTY_DOC()
           
 Token getPROPERTY_INLINE()
           
 Token getPROPERTY()
           
 Token getQUOT_BLOCK()
           
 Token getQUOT_LINE()
           
 Token getREFERENCE()
           
 Token getSPACE()
           
 Token getSPECIAL_SYMBOL()
           
 Token getSPECIAL_SYMBOLS()
           
 Token getTABLE_CELL()
           
 Token getTABLE_ROW()
           
 Token getToken(int index)
          Get the specific Token.
 Token getURI()
           
 Token getVERBATIM_INLINE_START()
           
 Token getVERBATIM_INLINE()
           
 Token getVERBATIM_START()
           
 Token getWORD()
           
 void header()
           
 void horline()
           
 void info()
           
protected  boolean isTableHeader(String str)
           
 void line()
           
 void lines()
           
 void list()
           
 void listItem()
           
 void macro(Token t, boolean block)
           
 void macroBlock()
           
 void newLine()
           
protected  WikiParameters newWikiParameters(String str)
           
protected  void onExtension(String str, boolean block)
           
 void paragraph()
           
 void parse(IWikiScannerContext context)
           
 void properties()
           
 void quot()
           
 void quotBlock()
           
 void quotLine()
           
 void ReInit(CommonWikiScannerTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void table()
           
 void tableRow()
           
protected  String unescape(String str)
           
 void verbatimBlock()
           
 void verbatimBody(boolean inline)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public CommonWikiScannerTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

CommonWikiScanner

public CommonWikiScanner(InputStream stream)
Constructor with InputStream.


CommonWikiScanner

public CommonWikiScanner(InputStream stream,
                         String encoding)
Constructor with InputStream and supplied encoding


CommonWikiScanner

public CommonWikiScanner(Reader stream)
Constructor.


CommonWikiScanner

public CommonWikiScanner(CommonWikiScannerTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

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

newWikiParameters

protected WikiParameters newWikiParameters(String str)

unescape

protected String unescape(String str)

onExtension

protected void onExtension(String str,
                           boolean block)

isTableHeader

protected boolean isTableHeader(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

getBR

public final Token getBR()
                  throws ParseException
Throws:
ParseException

getESCAPE

public final Token getESCAPE()
                      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

getLIST_ITEM

public final Token getLIST_ITEM()
                         throws ParseException
Throws:
ParseException

getVERBATIM_INLINE

public final Token getVERBATIM_INLINE()
                               throws ParseException
Throws:
ParseException

getVERBATIM_START

public final Token getVERBATIM_START()
                              throws ParseException
Throws:
ParseException

getVERBATIM_INLINE_START

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

getQUOT_BLOCK

public final Token getQUOT_BLOCK()
                          throws ParseException
Throws:
ParseException

getQUOT_LINE

public final Token getQUOT_LINE()
                         throws ParseException
Throws:
ParseException

getINFO

public final Token getINFO()
                    throws ParseException
Throws:
ParseException

getEXTENSION_BLOCK

public final Token getEXTENSION_BLOCK()
                               throws ParseException
Throws:
ParseException

getEXTENSION_INLINE

public final Token getEXTENSION_INLINE()
                                throws ParseException
Throws:
ParseException

getPROPERTY

public final Token getPROPERTY()
                        throws ParseException
Throws:
ParseException

getPROPERTY_DOC

public final Token getPROPERTY_DOC()
                            throws ParseException
Throws:
ParseException

getPROPERTY_INLINE

public final Token getPROPERTY_INLINE()
                               throws ParseException
Throws:
ParseException

getHEADER_BEGIN

public final Token getHEADER_BEGIN()
                            throws ParseException
Throws:
ParseException

getREFERENCE

public final Token getREFERENCE()
                         throws ParseException
Throws:
ParseException

getHEADER_END

public final Token getHEADER_END()
                          throws ParseException
Throws:
ParseException

getFORMAT_SYMBOL

public final Token getFORMAT_SYMBOL()
                             throws ParseException
Throws:
ParseException

getBLOCK_PARAMS

public final Token getBLOCK_PARAMS()
                            throws ParseException
Throws:
ParseException

getSPECIAL_SYMBOLS

public final Token getSPECIAL_SYMBOLS()
                               throws ParseException
Throws:
ParseException

getURI

public final Token getURI()
                   throws ParseException
Throws:
ParseException

getNL

public final Token getNL()
                  throws ParseException
Throws:
ParseException

getSPACE

public final Token getSPACE()
                     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

extensionBlock

public final void extensionBlock()
                          throws ParseException
Throws:
ParseException

properties

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

info

public final void info()
                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)
                        throws ParseException
Throws:
ParseException

macroBlock

public final void macroBlock()
                      throws ParseException
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

quotBlock

public final void quotBlock()
                     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)
Reinitialise.


ReInit

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


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(CommonWikiScannerTokenManager 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 © 2004-2013 XWiki. All Rights Reserved.