com.kitfox.svg.animation.parser
Class AnimTimeParser

java.lang.Object
  extended by com.kitfox.svg.animation.parser.AnimTimeParser
All Implemented Interfaces:
AnimTimeParserConstants, AnimTimeParserTreeConstants

public class AnimTimeParser
extends java.lang.Object
implements AnimTimeParserTreeConstants, AnimTimeParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTAnimTimeParserState jjtree
           
 Token token
          Current token.
 AnimTimeParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.kitfox.svg.animation.parser.AnimTimeParserTreeConstants
JJTEVENTTIME, JJTEXPR, JJTINDEFINITETIME, JJTINTEGER, JJTLITERALTIME, JJTLOOKUPTIME, jjtNodeName, JJTNUMBER, JJTPARAMLIST, JJTSUM, JJTTERM
 
Fields inherited from interface com.kitfox.svg.animation.parser.AnimTimeParserConstants
DEFAULT, DIGIT, EOF, FLOAT, IDENTIFIER, INDEFINITE, INTEGER, LETTER, MOUSE_OVER, tokenImage, UNITS, WHEN_NOT_ACTIVE
 
Constructor Summary
AnimTimeParser(AnimTimeParserTokenManager tm)
          Constructor with generated Token Manager.
AnimTimeParser(java.io.InputStream stream)
          Constructor with InputStream.
AnimTimeParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
AnimTimeParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 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(java.lang.String[] args)
          Test the parser
 double Number()
           
 double ParamList()
           
 void ReInit(AnimTimeParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 TimeBase Sum()
           
 TimeBase Term()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTAnimTimeParserState jjtree

token_source

public AnimTimeParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

AnimTimeParser

public AnimTimeParser(java.io.InputStream stream)
Constructor with InputStream.


AnimTimeParser

public AnimTimeParser(java.io.InputStream stream,
                      java.lang.String encoding)
Constructor with InputStream and supplied encoding


AnimTimeParser

public AnimTimeParser(java.io.Reader stream)
Constructor.


AnimTimeParser

public AnimTimeParser(AnimTimeParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

main

public static void main(java.lang.String[] args)
                 throws ParseException
Test the parser

Throws:
ParseException

Expr

public final TimeBase Expr()
                    throws ParseException
Expression structure

Throws:
ParseException

Sum

public final TimeBase Sum()
                   throws ParseException
Throws:
ParseException

Term

public final TimeBase Term()
                    throws ParseException
Throws:
ParseException

IndefiniteTime

public final TimeIndefinite IndefiniteTime()
                                    throws ParseException
Throws:
ParseException

EventTime

public final TimeDiscrete EventTime()
                             throws ParseException
Throws:
ParseException

LiteralTime

public final TimeDiscrete LiteralTime()
                               throws ParseException
Throws:
ParseException

LookupTime

public final TimeLookup LookupTime()
                            throws ParseException
Throws:
ParseException

ParamList

public final double ParamList()
                       throws ParseException
Throws:
ParseException

Number

public final double Number()
                    throws ParseException
Throws:
ParseException

Integer

public final int Integer()
                  throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

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


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(AnimTimeParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.