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.
Constructor Summary |
(package private) | PropertyTokenizer(String s) Construct a new PropertyTokenizer object to tokenize the passed
String. |
Method Summary |
(package private) void | next() Return the next token in the expression string. |
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
PropertyTokenizer
PropertyTokenizer(String s)
- Construct a new PropertyTokenizer object to tokenize the passed
String.
- Parameters:
- s - The Property expressio to tokenize.
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.
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