org.wikimodel.wem.gwiki.javacc
Class GWikiScanner

java.lang.Object
  extended by org.wikimodel.wem.gwiki.javacc.GWikiScanner
All Implemented Interfaces:
GWikiScannerConstants

public class GWikiScanner
extends Object
implements GWikiScannerConstants

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

Author:
kotelnikov

Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 GWikiScannerTokenManager token_source
           
 
Fields inherited from interface org.wikimodel.wem.gwiki.javacc.GWikiScannerConstants
ALPHA, CELL, CHAR, D_ESCAPE, D_FORMAT_SYMBOL, D_HEADER_BEGIN, D_HEADER_END, D_LIST_ITEM, D_NL, D_PROPERTY, D_REFERENCE, D_SPACE, D_SPECIAL_SYMBOL, D_TABLE_CELL, D_TABLE_ROW, D_URI, D_VERBATIM_INLINE, D_VERBATIM_START, D_WORD, DEFAULT, DIGIT, EOF, ESCAPE, FORMAT_SYMBOL, HEADER, HEXDIG, I_ESCAPE, I_FORMAT_SYMBOL, I_HEADER_BEGIN, I_HEADER_END, I_LIST_ITEM, I_NL, I_PROPERTY, I_REFERENCE, I_SPACE, I_SPECIAL_SYMBOL, I_TABLE_CELL, I_TABLE_ROW, I_URI, I_VERBATIM_INLINE, I_VERBATIM_START, I_WORD, INITIAL_CONTEXT, INTERNAL_VERBATIM_CONTENT, INTERNAL_VERBATIM_END, INTERNAL_VERBATIM_START, LI_SYMBOLS, NEW_LINE, PROPERTY, REFERENCE, 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_CONTEXT, VERBATIM_INLINE
 
Constructor Summary
GWikiScanner(GWikiScannerTokenManager tm)
           
GWikiScanner(InputStream stream)
           
GWikiScanner(InputStream stream, String encoding)
           
GWikiScanner(Reader stream)
           
 
Method Summary
 void block()
           
 void disable_tracing()
           
 void docElements()
           
 void doParse()
           
 void emptyParagraph()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getESCAPE()
           
 Token getFORMAT_SYMBOL()
           
 Token getHEADER_BEGIN()
           
 Token getHEADER_END()
           
 Token getINTERNAL_VERBATIM_CONTENT()
           
 Token getINTERNAL_VERBATIM_END()
           
 Token getINTERNAL_VERBATIM_START()
           
 Token getLIST_ITEM()
           
 Token getNextToken()
           
 Token getNL()
           
 Token getPROPERTY()
           
 Token getREFERENCE()
           
 Token getSPACE()
           
 Token getSPECIAL_SYMBOL()
           
 Token getTABLE_CELL()
           
 Token getTABLE_ROW()
           
 Token getToken(int index)
           
 Token getURI()
           
 Token getVERBATIM_INLINE()
           
 Token getVERBATIM_START()
           
 Token getWORD()
           
 void header()
           
 void line()
           
 void lines()
           
 void list()
           
 void listItem()
           
 void newLine()
           
 void paragraph()
           
 void parse(IWikiScannerContext context)
           
 void properties()
           
 void quot()
           
 void quotLine()
           
 void ReInit(GWikiScannerTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(Reader stream)
           
 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 GWikiScannerTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

GWikiScanner

public GWikiScanner(InputStream stream)

GWikiScanner

public GWikiScanner(InputStream stream,
                    String encoding)

GWikiScanner

public GWikiScanner(Reader stream)

GWikiScanner

public GWikiScanner(GWikiScannerTokenManager tm)
Method Detail

parse

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

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

getVERBATIM_START

public final Token getVERBATIM_START()
                              throws ParseException
Throws:
ParseException

getESCAPE

public final Token getESCAPE()
                      throws ParseException
Throws:
ParseException

getLIST_ITEM

public final Token getLIST_ITEM()
                         throws ParseException
Throws:
ParseException

getTABLE_ROW

public final Token getTABLE_ROW()
                         throws ParseException
Throws:
ParseException

getPROPERTY

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

getTABLE_CELL

public final Token getTABLE_CELL()
                          throws ParseException
Throws:
ParseException

getVERBATIM_INLINE

public final Token getVERBATIM_INLINE()
                               throws ParseException
Throws:
ParseException

getFORMAT_SYMBOL

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

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

block

public final void block()
                 throws ParseException
Throws:
ParseException

verbatimBlock

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