Package com.jstatcom.parser

Various parsers generated by JavaCC.

See:
          Description

Interface Summary
CalcEngineConstants  
MaturityParserConstants  
NumberRangeParserConstants  
TSDateParserConstants  
 

Class Summary
CalcEngine  
CalcEngineTokenManager  
CalcFunctions Enumeration of all functions that are used by CalcEngine.
MaturityParser  
MaturityParserTokenManager  
NumberRangeParser Parser that assembles number range objects from an input string, for example [1,100]
(-Infinity,Infinity)
[lowerBound",20)
(-Infinity, upperBound]
[1.2,1.2]
(-1.3e-2,1.3e-2)
One can use the parser via the parseString, parseStringToRange methods.
NumberRangeParserTokenManager  
SimpleCharStream  
Token  
TSDateParser Parser that assembles TSDate objects from an input string, for example 1960
1960.1
1960 I
1960 1/4
1960 Q4
1960 m11
The following rules apply for parsing: XX x"/"y, for example 1960 1/1 is recognized for arbitrary sub periodicities with mainPeriod=XX, subPeriod=x, subPeriodicity=y XX ["M","m"]x, for example 1960 M1 is recognized as mainPeriod=XX, subPeriod=x, subPeriodicity=12 (monthly) XX ["Q","q"]x, for example 1960 Q1 is recognized as mainPeriod=XX, subPeriod=x, subPeriodicity=4 (quarterly) XX ["I", "II"], for example 1960 I is recognized as mainPeriod=XX, subPeriod=1 or 2, subPeriodicity=2 (half yearly) XX , for example 1960 is recognized as mainPeriod=XX, subPeriod=1, subPeriodicity=1 (yearly) XX.x , for example 1960.1 is recognized as mainPeriod=XX, subPeriod=x, subPeriodicity=subPeriodicity (needs to be set as argument) You can use the parser via the parseString(input, subPeriodicity) method.
TSDateParserTokenManager  
 

Exception Summary
ParseException This exception is thrown when parse errors are encountered.
 

Error Summary
TokenMgrError  
 

Package com.jstatcom.parser Description

Various parsers generated by JavaCC.