org.quattor.pan.parser
Class PanParserTokenManager

java.lang.Object
  extended by org.quattor.pan.parser.PanParserTokenManager
All Implemented Interfaces:
PanParserConstants

public class PanParserTokenManager
extends java.lang.Object
implements PanParserConstants

Token Manager.


Field Summary
protected  char curChar
           
 java.io.PrintStream debugStream
          Debug output.
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.quattor.pan.parser.PanParserConstants
AND, ANNOTATION, ASSIGN, ASSIGN_DEFAULT, ASTERISK, BIND, BIT_AND, BIT_IOR, BIT_NOT, BIT_XOR, COMMA, COMMENT, DECIMAL_LITERAL, DECLARATION, DEFAULT, DIV, DOUBLE_LITERAL, DOUBLE_QUOTED_STRING, ELSE, EOF, EQ, ERROR, EXPONENT, EXTENSIBLE, FALSE, FINAL, FOR, FOREACH, FUNCTION, GE, GT, HD_MARKER, HEREDOC, HEREDOC_STRING, HEX_LITERAL, IDENTIFIER, IF, INCLUDE, LBRACE, LBRACKET, LE, LPAREN, LT, MINUS, MOD, NAMESPACE, NE, NOT, NS_IDENTIFIER, NULL_LITERAL, OBJECT, OCTAL_LITERAL, OPTIONAL, OR, PLUS, PREFIX, RANGE, RBRACE, RBRACKET, REQUIRED, RPAREN, SEMICOLON, SINGLE_QUOTED_STRING, STRUCTURE, TEMPLATE, tokenImage, TRUE, TYPE, UNDEF_LITERAL, UNIQUE, VALID, VARIABLE, WHILE, WITH
 
Constructor Summary
PanParserTokenManager(SimpleCharStream stream)
          Constructor.
PanParserTokenManager(SimpleCharStream stream, int lexState)
          Constructor.
 
Method Summary
 int getHeredocIndex()
          Return the current count of the number of heredoc strings.
 java.util.Vector<StringProperty> getHeredocStrings()
          Return the vector with the heredoc strings in it.
 Token getNextToken()
          Get the next Token.
 void initializeHeredocState()
          Initialize the heredoc state.
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

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

PanParserTokenManager

public PanParserTokenManager(SimpleCharStream stream)
Constructor.


PanParserTokenManager

public PanParserTokenManager(SimpleCharStream stream,
                             int lexState)
Constructor.

Method Detail

getHeredocStrings

public java.util.Vector<StringProperty> getHeredocStrings()
Return the vector with the heredoc strings in it.


getHeredocIndex

public int getHeredocIndex()
Return the current count of the number of heredoc strings.


initializeHeredocState

public void initializeHeredocState()
Initialize the heredoc state. This must be called explicitly before reusing the token manager for a new template.


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.



Copyright © 2011 Quattor. All Rights Reserved.