com.jstatcom.parser
Class MaturityParser
java.lang.Object
com.jstatcom.parser.MaturityParser
- All Implemented Interfaces:
- MaturityParserConstants
public class MaturityParser
- extends java.lang.Object
- implements MaturityParserConstants
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public MaturityParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
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)
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()