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

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

public class CommonWikiScannerTokenManager
extends Object
implements CommonWikiScannerConstants

Token Manager.


Field Summary
protected  char curChar
           
 PrintStream debugStream
          Debug output.
protected  SimpleCharStream input_stream
           
static int[] jjnewLexState
          Lex State array.
static String[] jjstrLiteralImages
          Token literal values.
static String[] lexStateNames
          Lexer state names.
 
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
CommonWikiScannerTokenManager(SimpleCharStream stream)
          Constructor.
CommonWikiScannerTokenManager(SimpleCharStream stream, int lexState)
          Constructor.
 
Method Summary
 Token getNextToken()
          Get the next Token.
protected  Token jjFillToken()
           
 void ReInit(SimpleCharStream stream)
          Reinitialise parser.
 void ReInit(SimpleCharStream stream, int lexState)
          Reinitialise parser.
 void setDebugStream(PrintStream ds)
          Set debug output.
 void SwitchTo(int lexState)
          Switch to specified lex state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugStream

public PrintStream debugStream
Debug output.


jjstrLiteralImages

public static final String[] jjstrLiteralImages
Token literal values.


lexStateNames

public static final String[] lexStateNames
Lexer state names.


jjnewLexState

public static final int[] jjnewLexState
Lex State array.


input_stream

protected SimpleCharStream input_stream

curChar

protected char curChar
Constructor Detail

CommonWikiScannerTokenManager

public CommonWikiScannerTokenManager(SimpleCharStream stream)
Constructor.


CommonWikiScannerTokenManager

public CommonWikiScannerTokenManager(SimpleCharStream stream,
                                     int lexState)
Constructor.

Method Detail

setDebugStream

public void setDebugStream(PrintStream ds)
Set debug output.


ReInit

public void ReInit(SimpleCharStream stream)
Reinitialise parser.


ReInit

public void ReInit(SimpleCharStream stream,
                   int lexState)
Reinitialise parser.


SwitchTo

public void SwitchTo(int lexState)
Switch to specified lex state.


jjFillToken

protected Token jjFillToken()

getNextToken

public Token getNextToken()
Get the next Token.