|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.units.UnitParser
public class UnitParser
Field Summary | |
---|---|
protected boolean |
isTime
Whether or not we're decoding a time unit. |
Token |
jj_nt
|
protected static long |
julianDayOrigin
The Julian day number of the (artificial) time origin. |
boolean |
lookingAhead
|
protected static Unit |
second
The canonical time unit. |
Token |
token
|
UnitParserTokenManager |
token_source
|
protected static UnitsDB |
unitsDB
The units database. |
Fields inherited from interface visad.data.units.UnitParserConstants |
---|
DATE, DAY, DECIMAL, DEFAULT, DIGIT, DIVIDE, EOF, EXP, FROM, HOUR, INT, INTEGER, LETTER, MINUTE, MONTH, NAME, REAL, SECOND, SHIFT, SIGN, SINCE, TIME, tokenImage, WHITESPACE, YEAR |
Constructor Summary | |
---|---|
UnitParser(java.io.InputStream stream)
|
|
UnitParser(java.io.Reader stream)
|
|
UnitParser(UnitParserTokenManager tm)
|
Method Summary | |
---|---|
void |
disable_tracing()
|
void |
enable_tracing()
|
static double |
encodeTimestamp(int year,
int month,
int day,
int hour,
int minute,
float second,
int zone)
Encode a timestamp as a double value in units of seconds. |
ParseException |
generateParseException()
|
Token |
getNextToken()
|
Token |
getToken(int index)
|
static long |
julianDay(int year,
int month,
int day)
Compute the Julian day number of a date. |
static void |
main(java.lang.String[] args)
Test this class. |
void |
multiply()
|
Unit |
nameExpression()
|
double |
numberExpression()
|
double |
numericalTerm()
|
Unit |
powerExpression()
|
void |
ReInit(java.io.InputStream stream)
|
void |
ReInit(java.io.Reader stream)
|
void |
ReInit(UnitParserTokenManager tm)
|
double |
shiftExpression()
|
double |
timestampExpression()
|
double |
timestampTerm()
|
Unit |
unitProductList()
|
Unit |
unitSpec()
|
double |
valueExpression()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static UnitsDB unitsDB
protected static final Unit second
protected boolean isTime
protected static final long julianDayOrigin
public UnitParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
Constructor Detail |
---|
public UnitParser(java.io.InputStream stream)
public UnitParser(java.io.Reader stream)
public UnitParser(UnitParserTokenManager tm)
Method Detail |
---|
public static long julianDay(int year, int month, int day)
public static double encodeTimestamp(int year, int month, int day, int hour, int minute, float second, int zone)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public final Unit unitSpec() throws ParseException
ParseException
public final Unit unitProductList() throws ParseException
ParseException
public final void multiply() throws ParseException
ParseException
public final Unit powerExpression() throws ParseException
ParseException
public final Unit nameExpression() throws ParseException
ParseException
public final double numberExpression() throws ParseException
ParseException
public final double shiftExpression() throws ParseException
ParseException
public final double valueExpression() throws ParseException
ParseException
public final double numericalTerm() throws ParseException
ParseException
public final double timestampExpression() throws ParseException
ParseException
public final double timestampTerm() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(UnitParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |