org.extex.interpreter.type.code
Interface Multiplyable
- All Known Implementing Classes:
- CountArray, CountPrimitive, Delcode, DimenParameter, DimenPrimitive, IntegerCode, IntegerParameter, LeftHyphenmin, Mag, MuskipParameter, MuskipPrimitive, NamedReal, NumberedReal, Odelcode, Prevgraf, RightHyphenmin, SkipParameter, SkipPrimitive
public interface Multiplyable
This is a interface to mark those classes which are able to multiply
something.
Extending \multiply
The primitive \multiply is designed to be expanded. It is fairly
simple to write a multiplyable primitive. The associated code simply has to
implement the interface Multiplyable. Whenever \multiply
is encountered immediately followed by a token which has the proper code
associated, the method multiply is invoked. It is up to this
method to gather further arguments and perform the multiplication.
With this interface the multiplication is in fact tied to the implementing
code and not to the primitive \multiply. Each primitive can be
made aware for multiplication without touching the code for
\multiply.
- Version:
- $Revision:4399 $
- Author:
- Gerd Neugebauer
multiply
void multiply(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
ConfigurationException,
TypesetterException
- This method is called when the macro \multiply 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
ConfigurationException - in case of an configuration error
TypesetterException - in case of an error in the typesetter