|
|||||||||||
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.macro.Noexpand
This class provides an implementation for the primitive
The primitive \noexpand prevents a token from being expanded when
collecting the expanded tokens for arguments of macros like \edef,
\xdef, \message, and others.
If the token following the \noexpand is not a control sequence or
active character then the primitive does nothing at all. The primitive is
also void if it occurs outside the said expansion context.
\noexpand
.
The Primitive \noexpand
Syntax
The formal description of this primitive is the following:
〈noexpand〉
→ \noexpand
Examples
\noexpand
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
Noexpand(java.lang.String name)
Creates a new object. |
Method Summary | |
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. |
void |
expandCode(Context context,
TokenSource source,
Typesetter typesetter,
Tokens tokens)
Expand the first token and place the result in a token list. |
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 |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public Noexpand(java.lang.String name)
name
- the name for debuggingMethod Detail |
public void execute(Flags prefix, Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
Code
execute
in interface Code
execute
in class AbstractCode
InterpreterException
Code.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)
public void expandCode(Context context, TokenSource source, Typesetter typesetter, Tokens tokens) throws InterpreterException
CodeExpander
expandCode
in interface CodeExpander
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesettertokens
- the target token list
InterpreterException
- in case of an errorCodeExpander.expandCode(
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter,
de.dante.extex.interpreter.type.tokens.Tokens)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |