org.xwiki.rendering.wikimodel.confluence.javacc
Class ConfluenceWikiScanner

java.lang.Object
  extended by org.xwiki.rendering.wikimodel.confluence.javacc.ConfluenceWikiScanner
All Implemented Interfaces:
ConfluenceWikiScannerConstants

public class ConfluenceWikiScanner
extends Object
implements ConfluenceWikiScannerConstants

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.
 ConfluenceWikiScannerTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.xwiki.rendering.wikimodel.confluence.javacc.ConfluenceWikiScannerConstants
ALPHA, BR, CELL, CHAR, D_BR, D_ESCAPED, D_FORMAT_SYMBOL, D_HEADER, D_HORLINE, D_LIST_ITEM, D_MACRO_BLOCK_START, D_MACRO_EMPTY_BLOCK, D_MACRO_EMPTY_INLINE, D_MACRO_INLINE_START, D_NL, D_QUOT_BLOCK, D_QUOT_BLOCK_MACRO, D_REFERENCE, D_SPACE, D_SPECIAL_SYMBOL, D_SPECIAL_SYMBOLS, D_TABLE_CELL, D_TABLE_ROW, D_URI, D_VERBATIM_BLOCK, D_VERBATIM_INLINE, D_WORD, DEFAULT, DIGIT, EOF, ESCAPED, FORMAT_SYMBOL, HEADER, HEXDIG, HORLINE, I_BR, I_ESCAPED, I_FORMAT_SYMBOL, I_HEADER, I_HORLINE, I_LIST_ITEM, I_MACRO_BLOCK_START, I_MACRO_EMPTY_BLOCK, I_MACRO_EMPTY_INLINE, I_MACRO_INLINE_START, I_NL, I_QUOT_BLOCK, I_QUOT_BLOCK_MACRO, I_REFERENCE, I_SPACE, I_SPECIAL_SYMBOL, I_SPECIAL_SYMBOLS, I_TABLE_CELL, I_TABLE_ROW, I_URI, I_VERBATIM_BLOCK, I_VERBATIM_INLINE, I_WORD, INITIAL_CONTEXT, INTERNAL_MACRO, INTERNAL_MACRO_CONTENT, LI, LIST_ITEM, MACRO, MACRO_BLOCK, MACRO_CONTENT, MACRO_CONTEXT, MACRO_PARAMS, NEW_LINE, QUOT_BLOCK, QUOT_BLOCK_MACRO, 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
 
Constructor Summary
ConfluenceWikiScanner(ConfluenceWikiScannerTokenManager tm)
          Constructor with generated Token Manager.
ConfluenceWikiScanner(InputStream stream)
          Constructor with InputStream.
ConfluenceWikiScanner(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
ConfluenceWikiScanner(Reader stream)
          Constructor.
 
Method Summary
 void block()
           
 void disable_tracing()
          Disable tracing.
 void docElements()
           
 void doParse()
           
 void emptyMacro(Token t, boolean block)
           
 void emptyParagraph()
           
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 Token getBR()
           
 Token getESCAPED()
           
 Token getFORMAT_SYMBOL()
           
 Token getHEADER()
           
 Token getHORLINE()
           
 Token getINTERNAL_MACRO_CONTENT()
           
 Token getINTERNAL_MACRO()
           
 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 getQUOT_BLOCK_MACRO()
           
 Token getQUOT_BLOCK()
           
 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_BLOCK()
           
 Token getVERBATIM_INLINE()
           
 Token getWORD()
           
 void header()
           
 void horline()
           
 void line()
           
 void lines()
           
 void list()
           
 void listItem()
           
 void macro(Token t, boolean block)
           
 void macroBlock()
           
 void multilineBlock()
           
 void newLine()
           
 void paragraph()
           
 void parse(ConfluenceWikiScannerContext context)
           
 void quot()
           
 void quotLines()
           
 void quotMacro()
           
 void ReInit(ConfluenceWikiScannerTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void setNoformatAsMacro(boolean noformatAsMacro)
           
 void table()
           
 void tableRow()
           
 void verbatimBlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ConfluenceWikiScannerTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

ConfluenceWikiScanner

public ConfluenceWikiScanner(InputStream stream)
Constructor with InputStream.


ConfluenceWikiScanner

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


ConfluenceWikiScanner

public ConfluenceWikiScanner(Reader stream)
Constructor.


ConfluenceWikiScanner

public ConfluenceWikiScanner(ConfluenceWikiScannerTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

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

setNoformatAsMacro

public void setNoformatAsMacro(boolean noformatAsMacro)

getINTERNAL_MACRO

public final Token getINTERNAL_MACRO()
                              throws ParseException
Throws:
ParseException

getINTERNAL_MACRO_CONTENT

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

getHEADER

public final Token getHEADER()
                      throws ParseException
Throws:
ParseException

getVERBATIM_BLOCK

public final Token getVERBATIM_BLOCK()
                              throws ParseException
Throws:
ParseException

getHORLINE

public final Token getHORLINE()
                       throws ParseException
Throws:
ParseException

getVERBATIM_INLINE

public final Token getVERBATIM_INLINE()
                               throws ParseException
Throws:
ParseException

getREFERENCE

public final Token getREFERENCE()
                         throws ParseException
Throws:
ParseException

getQUOT_BLOCK

public final Token getQUOT_BLOCK()
                          throws ParseException
Throws:
ParseException

getQUOT_BLOCK_MACRO

public final Token getQUOT_BLOCK_MACRO()
                                throws ParseException
Throws:
ParseException

getBR

public final Token getBR()
                  throws ParseException
Throws:
ParseException

getMACRO_BLOCK_START

public final Token getMACRO_BLOCK_START()
                                 throws ParseException
Throws:
ParseException

getMACRO_EMPTY_BLOCK

public final Token getMACRO_EMPTY_BLOCK()
                                 throws ParseException
Throws:
ParseException

getMACRO_INLINE_START

public final Token getMACRO_INLINE_START()
                                  throws ParseException
Throws:
ParseException

getMACRO_EMPTY_INLINE

public final Token getMACRO_EMPTY_INLINE()
                                  throws ParseException
Throws:
ParseException

getESCAPED

public final Token getESCAPED()
                       throws ParseException
Throws:
ParseException

getFORMAT_SYMBOL

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

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

multilineBlock

public final void multilineBlock()
                          throws ParseException
Throws:
ParseException

verbatimBlock

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

quot

public final void quot()
                throws ParseException
Throws:
ParseException

quotMacro

public final void quotMacro()
                     throws ParseException
Throws:
ParseException

quotLines

public final void quotLines()
                     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(ConfluenceWikiScannerTokenManager 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–2014 XWiki. All rights reserved.