org.apache.fop.fo.expr
Class PropertyTokenizer

Direct Known Subclasses:
PropertyParser

class PropertyTokenizer

Class to tokenize XSL FO property expression. This class is heavily based on the epxression tokenizer in James Clark's XT, an XSLT processor.


Field Summary
 (package private) intcurrentToken
           
 (package private) StringcurrentTokenValue
           
 (package private) final static intTOK_COLORSPEC
           
 (package private) final static intTOK_COMMA
           
 (package private) final static intTOK_DIV
           
 (package private) final static intTOK_EOF
           
 (package private) final static intTOK_FLOAT
           
 (package private) final static intTOK_FUNCTION_LPAR
           
 (package private) final static intTOK_INTEGER
           
 (package private) final static intTOK_LITERAL
           
 (package private) final static intTOK_LPAR
           
 (package private) final static intTOK_MINUS
           
 (package private) final static intTOK_MOD
           
 (package private) final static intTOK_MULTIPLY
           
 (package private) final static intTOK_NCNAME
           
 (package private) final static intTOK_NUMBER
           
 (package private) final static intTOK_NUMERIC
           
 (package private) final static intTOK_PERCENT
           
 (package private) final static intTOK_PLUS
           
 (package private) final static intTOK_RPAR
           

Constructor Summary
 (package private) PropertyTokenizer(String s)
          Construct a new PropertyTokenizer object to tokenize the passed String.

Method Summary
 (package private) voidnext()
          Return the next token in the expression string.

Field Detail

currentToken

int currentToken

currentTokenValue

String currentTokenValue

TOK_COLORSPEC

final static int TOK_COLORSPEC

TOK_COMMA

final static int TOK_COMMA

TOK_DIV

final static int TOK_DIV

TOK_EOF

final static int TOK_EOF

TOK_FLOAT

final static int TOK_FLOAT

TOK_FUNCTION_LPAR

final static int TOK_FUNCTION_LPAR

TOK_INTEGER

final static int TOK_INTEGER

TOK_LITERAL

final static int TOK_LITERAL

TOK_LPAR

final static int TOK_LPAR

TOK_MINUS

final static int TOK_MINUS

TOK_MOD

final static int TOK_MOD

TOK_MULTIPLY

final static int TOK_MULTIPLY

TOK_NCNAME

final static int TOK_NCNAME

TOK_NUMBER

final static int TOK_NUMBER

TOK_NUMERIC

final static int TOK_NUMERIC

TOK_PERCENT

final static int TOK_PERCENT

TOK_PLUS

final static int TOK_PLUS

TOK_RPAR

final static int TOK_RPAR
Constructor Detail

PropertyTokenizer

PropertyTokenizer(String s)
Construct a new PropertyTokenizer object to tokenize the passed String.
Parameters:
s - The Property expressio to tokenize.
Method Detail

next

void next()
throws PropertyException
Return the next token in the expression string. This sets the following package visible variables: currentToken An enumerated value identifying the recognized token currentTokenValue A String containing the token contents currentUnitLength If currentToken = TOK_NUMERIC, the number of characters in the unit name.
Throws:
PropertyException - If un unrecognized token is encountered.

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String