|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.AbstractCode
de.dante.extex.interpreter.primitives.typesetter.mark.AbstractMarksCode
Thus abstract base class for marks primitives provides the common features.
Field Summary |
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode |
serialVersionUID |
Constructor Summary | |
AbstractMarksCode(java.lang.String name)
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 de.dante.extex.interpreter.type.AbstractCode |
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractMarksCode(java.lang.String name)
name
- the name of the primitiveMethod Detail |
public Tokens convertTokens(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
TokensConvertible
convertTokens
in interface TokensConvertible
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter to use for conversion
InterpreterException
- in case of an errorTokensConvertible.convertTokens(
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter)
public void execute(Flags prefix, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
Code
execute
in interface Code
execute
in class AbstractCode
InterpreterException
AbstractCode.execute(
de.dante.extex.interpreter.Flags,
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter)
public void expand(Flags prefix, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
ExpandableCode
expand
in interface ExpandableCode
prefix
- the prefix flags controlling the expansioncontext
- the interpreter contextsource
- the token sourcetypesetter
- the typesetter
InterpreterException
- in case of an errorExpandableCode.expand(
de.dante.extex.interpreter.Flags,
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter)
protected java.lang.String getKey(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
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
{@link de.dante.extex.interpreter.primitives.macro.Csname \csname}.
〈register name〉 → {@linkplain de.dante.extex.interpreter.TokenSource#scanTokens(Context,boolean,boolean,String) 〈tokens〉} | {@linkplain de.dante.extex.interpreter.TokenSource#scanNumber(Context) 〈number〉}
123 {abc
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesetter
InterpreterException
- in case of an errorprotected abstract Tokens getValue(Context context, java.lang.String key) throws InterpreterException
context
- the interpreter contextkey
- the key
InterpreterException
- in case of an exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |