com.pmdesigns.jvc.tools
Class JVCParser

java.lang.Object
  extended by com.pmdesigns.jvc.tools.JVCParser
All Implemented Interfaces:
JVCParserConstants

public class JVCParser
extends java.lang.Object
implements JVCParserConstants

Machine generated view template parser. See JVCParser.jj for actual source code (parser generated with javacc).


Field Summary
 int debugColumn
           
 Token jj_nt
          Next token.
 Token token
          Current token.
 JVCParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.pmdesigns.jvc.tools.JVCParserConstants
ALPHA, DEFAULT, DIGIT, END_CACHE_BLOCK, END_TAG, EOF, EOL, ESCAPED_CHAR, ID, IMPORT, IN_CODE, IN_COMMENT, IN_EXPR, IN_EXPR2, IN_LOAD, OTHER, START_CACHE_BLOCK, START_CODE_TAG, START_COMMENT_TAG, START_EXPR_TAG, START_EXPR2_TAG, START_LOAD_TAG, tokenImage, WS
 
Constructor Summary
JVCParser(java.io.InputStream stream)
          Constructor with InputStream.
JVCParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
JVCParser(JVCParserTokenManager tm)
          Constructor with generated Token Manager.
JVCParser(java.io.Reader stream)
          Constructor.
JVCParser(java.lang.String path, java.util.Set<java.lang.String> imports)
          Constructor.
JVCParser(java.lang.String path, java.util.Set<java.lang.String> imports, boolean debug)
           
 
Method Summary
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
static void main(java.lang.String[] args)
          Entry point for stand alone testing.
 java.lang.String parse()
          Root production.
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(JVCParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugColumn

public int debugColumn

token_source

public JVCParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

JVCParser

public JVCParser(java.lang.String path,
                 java.util.Set<java.lang.String> imports)
          throws java.io.FileNotFoundException
Constructor. Usage: String template_file_path; Set imports; JVCParser parser = new JVCParser(template_file_path, imports); String pageGeneratorCode = parser.parse();

Throws:
java.io.FileNotFoundException

JVCParser

public JVCParser(java.lang.String path,
                 java.util.Set<java.lang.String> imports,
                 boolean debug)
          throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

JVCParser

public JVCParser(java.io.InputStream stream)
Constructor with InputStream.


JVCParser

public JVCParser(java.io.InputStream stream,
                 java.lang.String encoding)
Constructor with InputStream and supplied encoding


JVCParser

public JVCParser(java.io.Reader stream)
Constructor.


JVCParser

public JVCParser(JVCParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        ParseException
Entry point for stand alone testing.

Throws:
java.io.FileNotFoundException
ParseException

parse

public final java.lang.String parse()
                             throws ParseException,
                                    ParseException,
                                    java.io.FileNotFoundException
Root production.

Throws:
ParseException
java.io.FileNotFoundException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(JVCParserTokenManager 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.