|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.fotree.parse.PropertyParser
public final class PropertyParser
Class to parse XSL FO property expression. This class is heavily based on the epxression parser in James Clark's XT, an XSLT processor.
Method Summary | |
---|---|
int |
getCurrentToken()
Returns the current token. |
String |
getCurrentTokenValue()
Returns the current token value. |
int |
getCurrentUnitLength()
Returns the current unit length. |
static PropertyValue |
parse(FObj fobj,
String expr,
PropertyType propertyType)
Public entrypoint to the Property expression parser. |
void |
popFunction()
Pops an item off of the function stack. |
void |
pushFunction(Function func)
Pushes a function onto the stack of functions being evaluated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PropertyValue parse(FObj fobj, String expr, PropertyType propertyType) throws PropertyException
expr
- The specified value (attribute on the xml element).fobj
- The parent FObj of the expression being parsed.propertyType
- The property type for which the value is being
parsed. This is needed for some functions, for example "from-parent".
PropertyException
- If the "expr" cannot be parsed as a Property.public void pushFunction(Function func)
func
- The function to push onto the stack.public void popFunction()
public String getCurrentTokenValue()
public int getCurrentToken()
public int getCurrentUnitLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |