com.jstatcom.parser
Class MaturityParser

java.lang.Object
  extended by com.jstatcom.parser.MaturityParser
All Implemented Interfaces:
MaturityParserConstants

public class MaturityParser
extends java.lang.Object
implements MaturityParserConstants


Field Summary
 Token jj_nt
           
 Token token
           
 MaturityParserTokenManager token_source
           
 
Fields inherited from interface com.jstatcom.parser.MaturityParserConstants
DAY, DEFAULT, DIGIT, EOF, EOL, INTEGER, MONTH, tokenImage, YEAR
 
Constructor Summary
MaturityParser()
          Default constructor.
MaturityParser(java.io.InputStream stream)
           
MaturityParser(java.io.InputStream stream, java.lang.String encoding)
           
MaturityParser(MaturityParserTokenManager tm)
           
MaturityParser(java.io.Reader stream)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
static void main(java.lang.String[] args)
           
 void maturity()
          Possible Maturity formats.
 Maturity parseString(java.lang.String inputString)
          Reinitializes this engine and parses an input String.
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
           
 void ReInit(MaturityParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 int toeval()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public MaturityParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

MaturityParser

public MaturityParser()
Default constructor.


MaturityParser

public MaturityParser(java.io.InputStream stream)

MaturityParser

public MaturityParser(java.io.InputStream stream,
                      java.lang.String encoding)

MaturityParser

public MaturityParser(java.io.Reader stream)

MaturityParser

public MaturityParser(MaturityParserTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)

parseString

public Maturity parseString(java.lang.String inputString)
                     throws ParseException,
                            TokenMgrError,
                            java.lang.IllegalArgumentException
Reinitializes this engine and parses an input String.

Parameters:
inputString - the String to parse
Returns:
Maturity object if parser and assembly where successful
Throws:
java.lang.IllegalArgumentException - if Maturity assembly failed due to wrong arguments
ParseException - if parsing failed, contains error description
TokenMgrError - if tokenizing failed, contains error description

toeval

public final int toeval()
                 throws ParseException
Throws:
ParseException

maturity

public final void maturity()
                    throws ParseException
Possible Maturity formats.

Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

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

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(MaturityParserTokenManager 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()