|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.base.parser.dimen.LengthParser
public final class 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)
Register a function. |
static void |
register(java.lang.String name,
Function0 function)
Register a function of arity 0 alas a constant. |
static void |
register(java.lang.String name,
Function1 function)
Register a function of arity 1. |
static void |
register(java.lang.String name,
org.extex.base.parser.dimen.Function2 function)
Register a function of arity 2. |
| 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 HelpingException,
TypesetterException
accumulator - the accumulator to receive the resultcontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
public static Dimen parse(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
context - the interpreter contextsource - the source for next tokenstypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
public static void register(java.lang.String name,
Function function)
name - the name of the functionfunction - the function
public static void register(java.lang.String name,
Function0 function)
name - the name of the functionfunction - the function
public static void register(java.lang.String name,
Function1 function)
name - the name of the functionfunction - the function
public static void register(java.lang.String name,
org.extex.base.parser.dimen.Function2 function)
name - the name of the functionfunction - the function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||