|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.type.AbstractCode
org.extex.interpreter.type.AbstractAssignment
org.extex.unit.tex.register.count.AbstractCount
org.extex.unit.tex.register.count.CountPrimitive
org.extex.unit.tex.register.count.Prevgraf
public class Prevgraf
This class provides an implementation for the primitive
TODO missing documentation
The formal description of this primitive is the following:
\prevgraf.
The Primitive \prevgraf
〈prevgraf〉
→ \prevgraf
Examples:
\prevgraf
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Prevgraf(CodeToken token)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
advance(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method is called when the macro \advance has been seen. |
void |
assign(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
The method assign is the core of the functionality of execute().
This method is preferable to execute() since the
execute() method provided in this class takes care of
\afterassignment and \globaldefs as well. |
void |
divide(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method is called when the macro \divide has been seen. It performs the remaining tasks for the expansion. |
protected java.lang.String |
getKey(Context context,
TokenSource source,
Typesetter typesetter)
Return the key (the name of the primitive) for the numbered count register. |
void |
multiply(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method is called when the macro \multiply has been seen. It performs the remaining tasks for the expansion. |
| Methods inherited from class org.extex.unit.tex.register.count.CountPrimitive |
|---|
convertCount, expand, the |
| Methods inherited from class org.extex.unit.tex.register.count.AbstractCount |
|---|
init |
| Methods inherited from class org.extex.interpreter.type.AbstractAssignment |
|---|
execute |
| 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 |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public Prevgraf(CodeToken token)
token - the initial token for the primitive| Method Detail |
|---|
protected java.lang.String getKey(Context context,
TokenSource source,
Typesetter typesetter)
getKey in class AbstractCountcontext - the interpreter context to usesource - the source for new tokenstypesetter - the typesetter
AbstractCount.getKey(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void advance(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
advance in interface Advanceableadvance in class CountPrimitiveprefix - the prefix for the commandcontext - the processor contextsource - the token source to parsetypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterAdvanceable.advance(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void assign(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
execute().
This method is preferable to execute() since the
execute() method provided in this class takes care of
\afterassignment and \globaldefs as well.
assign in class CountPrimitiveprefix - the prefix controlling the executioncontext - the interpreter contextsource - the token sourcetypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterCountPrimitive.assign(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void divide(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
divide in interface Divideabledivide in class CountPrimitiveprefix - the prefix for the commandcontext - the processor contextsource - the token source to parsetypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterCountPrimitive.divide(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void multiply(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
multiply in interface Multiplyablemultiply in class CountPrimitiveprefix - the prefix for the commandcontext - the processor contextsource - the token source to parsetypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterCountPrimitive.multiply(
org.extex.interpreter.Flags, 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 | |||||||||