public class AnimTimeParser extends Object implements AnimTimeParserTreeConstants, AnimTimeParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTAnimTimeParserState |
jjtree |
Token |
token
Current token.
|
AnimTimeParserTokenManager |
token_source
Generated Token Manager.
|
JJTEVENTTIME, JJTEXPR, JJTINDEFINITETIME, JJTINTEGER, JJTLITERALTIME, JJTLOOKUPTIME, jjtNodeName, JJTNUMBER, JJTPARAMLIST, JJTSUM, JJTTERM
DEFAULT, DIGIT, EOF, FLOAT, IDENTIFIER, INDEFINITE, INTEGER, LETTER, MOUSE_OVER, tokenImage, UNITS, WHEN_NOT_ACTIVE
Constructor and Description |
---|
AnimTimeParser(AnimTimeParserTokenManager tm)
Constructor with generated Token Manager.
|
AnimTimeParser(InputStream stream)
Constructor with InputStream.
|
AnimTimeParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
AnimTimeParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
TimeDiscrete |
EventTime() |
TimeBase |
Expr()
Expression structure
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
TimeIndefinite |
IndefiniteTime() |
int |
Integer() |
TimeDiscrete |
LiteralTime() |
TimeLookup |
LookupTime() |
static void |
main(String[] args)
Test the parser
|
double |
Number() |
double |
ParamList() |
void |
ReInit(AnimTimeParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
TimeBase |
Sum() |
TimeBase |
Term() |
protected JJTAnimTimeParserState jjtree
public AnimTimeParserTokenManager token_source
public Token token
public Token jj_nt
public AnimTimeParser(InputStream stream)
public AnimTimeParser(InputStream stream, String encoding)
public AnimTimeParser(Reader stream)
public AnimTimeParser(AnimTimeParserTokenManager tm)
public static void main(String[] args) throws ParseException
ParseException
public final TimeBase Expr() throws ParseException
ParseException
public final TimeBase Sum() throws ParseException
ParseException
public final TimeBase Term() throws ParseException
ParseException
public final TimeIndefinite IndefiniteTime() throws ParseException
ParseException
public final TimeDiscrete EventTime() throws ParseException
ParseException
public final TimeDiscrete LiteralTime() throws ParseException
ParseException
public final TimeLookup LookupTime() throws ParseException
ParseException
public final double ParamList() throws ParseException
ParseException
public final double Number() throws ParseException
ParseException
public final int Integer() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(AnimTimeParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()