BioLegato 0.7.3 Core API

org.biolegato.core.pcdmenu.parser
Class PCDFileTokenManager

java.lang.Object
  extended by org.biolegato.core.pcdmenu.parser.PCDFileTokenManager
All Implemented Interfaces:
PCDFileConstants

public class PCDFileTokenManager
extends java.lang.Object
implements PCDFileConstants

Token Manager.


Field Summary
protected  char curChar
           
 java.io.PrintStream debugStream
          Debug output.
static int INDENT_SIZE
          Used to store the size of an indent in spaces This is necessary for calculations within the Java program
protected  SimpleCharStream input_stream
           
static int[] jjnewLexState
          Lex State array.
static java.lang.String[] jjstrLiteralImages
          Token literal values.
static java.lang.String[] lexStateNames
          Lexer state names.
 
Fields inherited from interface org.biolegato.core.pcdmenu.parser.PCDFileConstants
COMMA, COMMENT, DATA, DECIMAL, DEFAULT, DIGITS, DOUBLEQ, EOF, EOL, ID, IND, NL, NUMBER, SP, T_ALL, T_AMD64, T_AND, T_BUTTON, T_CANVAS, T_CHECK, T_CHOICES, T_CHOOSER, T_CLOSE, T_CMDNAME, T_COMBOBOX, T_CONTENT, T_DECIMAL, T_DEFAULT, T_FALSE, T_FASTA, T_FILE, T_FLAT, T_FORMAT, T_GDE, T_GENBANK, T_ICON, T_IF, T_IN, T_LABEL, T_LINUX, T_LIST, T_MAX, T_MIN, T_NUMBER, T_OR, T_OSX, T_OUT, T_OVERWRITE, T_PARAM, T_RAW, T_SAVE, T_SELECTION, T_SHELL, T_SOLARIS, T_SPARC, T_SYSTEM, T_TAB, T_TEMPFILE, T_TEXT, T_THEN, T_TIP, T_TRUE, T_TYPE, T_UNIX, T_WINDOWS, T_X86, T_XOR, TAB, TEXT, tokenImage
 
Constructor Summary
PCDFileTokenManager(SimpleCharStream stream)
          Constructor.
PCDFileTokenManager(SimpleCharStream stream, int lexState)
          Constructor.
 
Method Summary
 int getIndent()
          Returns the current indentation level
 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(java.io.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

INDENT_SIZE

public static final int INDENT_SIZE
Used to store the size of an indent in spaces This is necessary for calculations within the Java program

See Also:
Constant Field Values

debugStream

public java.io.PrintStream debugStream
Debug output.


jjstrLiteralImages

public static final java.lang.String[] jjstrLiteralImages
Token literal values.


lexStateNames

public static final java.lang.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

PCDFileTokenManager

public PCDFileTokenManager(SimpleCharStream stream)
Constructor.


PCDFileTokenManager

public PCDFileTokenManager(SimpleCharStream stream,
                           int lexState)
Constructor.

Method Detail

getIndent

public int getIndent()
Returns the current indentation level

Returns:
the current indentation level

setDebugStream

public void setDebugStream(java.io.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.


BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.