|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.dimen.parser.LengthParser
This class provides some static methods to parse an expression and return its value.
Method Summary | |
static void |
evalTerm(Accumulator accumulator,
Context context,
TokenSource source,
Typesetter typesetter)
Evaluate a terminal. |
static Dimen |
parse(Context context,
TokenSource source,
Typesetter typesetter)
Creates a new object from a token stream. |
static void |
register(java.lang.String name,
Function function)
|
static void |
register(java.lang.String name,
Function0 function)
|
static void |
register(java.lang.String name,
Function1 function)
|
static void |
register(java.lang.String name,
de.dante.extex.interpreter.type.dimen.parser.Function2 function)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void evalTerm(Accumulator accumulator, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
accumulator
- the accumulator to receive the resultcontext
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter
InterpreterException
- in case of an errorpublic static Dimen parse(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
context
- the interpreter contextsource
- the source for next tokenstypesetter
- the typesetter
InterpreterException
- in case of an errorpublic static void register(java.lang.String name, Function function)
public static void register(java.lang.String name, Function0 function)
public static void register(java.lang.String name, Function1 function)
public static void register(java.lang.String name, de.dante.extex.interpreter.type.dimen.parser.Function2 function)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |