org.extex.interpreter.type.code
Interface Advanceable
- All Known Implementing Classes:
- CountArray, CountPrimitive, Delcode, DimenParameter, DimenPrimitive, IntegerCode, IntegerParameter, LeftHyphenmin, Mag, MuskipParameter, MuskipPrimitive, NamedReal, NumberedReal, Odelcode, Prevgraf, RightHyphenmin, SkipParameter, SkipPrimitive
public interface Advanceable
This is a interface to mark those Classes which are able to advance
something.
Extending \advance
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 touching the code for \advance.
- Version:
- $Revision:4399 $
- Author:
- Gerd Neugebauer
advance
void advance(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
- This method is called when the macro \advance has been seen.
It performs the remaining tasks for the expansion.
- Parameters:
prefix - the prefix for the commandcontext - the processor contextsource - the token source to parsetypesetter - the typesetter
- Throws:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
org.extex.framework.configuration.exception.ConfigurationException - in case of an configuration error