|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.base.parser.ConstantGlueParser
public class ConstantGlueParser
This class provides a parser for constant glue entities.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
ConstantGlueParser()
Creates a new object. |
|
| Method Summary | |
|---|---|
Glue |
parse(Context context,
TokenSource source,
Typesetter typesetter)
Parse a value of the given type |
Glue |
parseGlue(Context context,
TokenSource source,
Typesetter typesetter)
Parse a glue value and return the result. |
static Glue |
scan(TokenSource source,
Context context,
Typesetter typesetter)
Creates a new object by parsing a token source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public ConstantGlueParser()
| Method Detail |
|---|
public static Glue scan(TokenSource source,
Context context,
Typesetter typesetter)
throws HelpingException,
TypesetterException
〈glue〉
→ 〈component〉
| 〈component〉 plus 〈component〉
| 〈component〉 minus 〈component〉
| 〈component〉 plus 〈component〉 minus 〈component〉
〈component〉
→ 〈dimen;〉
| 〈float〉 〈unit〉
〈unit〉
→ fi
| fil
| fill
| filll
TODO gene: documentation incomplete
source - the source to read new tokens fromcontext - the processing contexttypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
public Glue parse(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
parse in interface Parser<Glue>context - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterParser.parse(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public Glue parseGlue(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
parseGlue in interface GlueParsercontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterGlueParser.parseGlue(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||