|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a interface to mark those Classes which are able to advance
something.
The primitive \advance is designed to be expanded. It is fairly
simple to write an advancable primitive. The associated code simply has to
implement the interface Advanceable. Whenever \advance
is encountered immediately followed by a token which has the proper code
associated, the method advance is invoked. It is up to this
method to gather further arguments and perform the functionality.
With this interface the functionality is in fact tied to the implementing
code and not to the primitive \advance. Each primitive can be
made aware for advancing without touchÃng the code for \advance.
Extending \advance
Method Summary | |
void |
advance(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method is called when the macro \advance has been seen. |
Method Detail |
public void advance(Flags prefix, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
prefix
- the prefix for the commandcontext
- the processor contextsource
- the token source to parsetypesetter
- the typesetter
InterpreterException
- in case of an error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |