org.extex.unit.omega.ocp
Class Addbeforeocplist

java.lang.Object
  extended by org.extex.interpreter.type.AbstractCode
      extended by org.extex.unit.omega.ocp.AbstractOcplist
          extended by org.extex.unit.omega.ocp.Addbeforeocplist
All Implemented Interfaces:
java.io.Serializable, Code, OcplistConvertible

public class Addbeforeocplist
extends AbstractOcplist

This class provides an implementation for the primitive \addbeforeocplist.

The Primitive \addbeforeocplist

The primitive \addbeforeocplist can be used to build up an ΩPC list. It is valid in the context of the primitive \ocplist only.

Syntax

The formal description of this primitive is the following:
    ⟨addbeforeocplist⟩
      → \addbeforeocplistfloat⟩ ⟨ocp register

Examples

 \addbeforeocplist 1.5 \myopc 

Version:
$Revision: 4732 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
Addbeforeocplist(CodeToken token)
          Creates a new object.
 
Method Summary
 OcpList convertOcplist(Context context, TokenSource source, Typesetter typesetter)
          Convert the value into an ΩPC list.
 
Methods inherited from class org.extex.unit.omega.ocp.AbstractOcplist
execute, scanOcplist
 
Methods inherited from class org.extex.interpreter.type.AbstractCode
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Addbeforeocplist

public Addbeforeocplist(CodeToken token)
Creates a new object.

Parameters:
token - the initial token for the primitive
Method Detail

convertOcplist

public OcpList convertOcplist(Context context,
                              TokenSource source,
                              Typesetter typesetter)
                       throws HelpingException
Convert the value into an ΩPC list. Some tokens may be read from the input stream to perform the job.

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter
Returns:
the ΩPC list encountered
Throws:
HelpingException - in case of an error
See Also:
OcplistConvertible.convertOcplist( org.extex.interpreter.context.Context, org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)