|
||||||||||
| 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.unit.tex.typesetter.mark.AbstractMarksCode
public abstract class AbstractMarksCode
Thus abstract base class for marks primitives provides the common features.
| Constructor Summary | |
|---|---|
AbstractMarksCode(CodeToken token)
Creates a new object. |
|
| Method Summary | |
|---|---|
Tokens |
convertTokens(Context context,
TokenSource source,
Typesetter typesetter)
This method converts a register into tokens. |
void |
execute(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method takes the first token and executes it. |
void |
expand(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
This method takes the first token and expands it. |
protected java.lang.String |
getKey(Context context,
TokenSource source,
Typesetter typesetter)
Get the key for this mark. |
protected abstract Tokens |
getValue(Context context,
java.lang.String key)
Get the value for this mark. |
| 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 |
|---|
public AbstractMarksCode(CodeToken token)
token - the initial token for the primitive| Method Detail |
|---|
public Tokens convertTokens(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
convertTokens in interface TokensConvertiblecontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetter to use for conversion
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterTokensConvertible.convertTokens(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void execute(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
execute in interface Codeexecute in class AbstractCodeprefix - 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 typesetterAbstractCode.execute(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void expand(Flags prefix,
Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
expand in interface ExpandableCodeprefix - the prefix flags controlling the expansioncontext - the interpreter contextsource - the token sourcetypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterExpandableCode.expand(
org.extex.interpreter.Flags, org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
protected java.lang.String getKey(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
A mark name determines under which key a mark can be addressed. In
The alternative is controlled by the count register \register.max. The following interpretation of the value of this count is used:
The value of the count register \register.max is set
differently for various configurations of
Note that the register name \register.max contains a period.
Thus it can normally not be entered easily since the catcode of the
period is OTHER but needs to be LETTER. Thus you have to use a
temporarily reassigned category code (see
\catcode or
use \csname.
〈register name〉
→ 〈tokens〉
| 〈number〉
123
{abc}
context - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter
protected abstract Tokens getValue(Context context,
java.lang.String key)
context - the interpreter contextkey - the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||