|
|||||||||||
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.type.AbstractAssignment
de.dante.extex.interpreter.primitives.register.dimen.AbstractDimen
de.dante.extex.interpreter.primitives.register.dimen.DimenPrimitive
de.dante.extex.interpreter.primitives.register.dimen.DimenParameter
This class provides an implementation for the primitive \dimen
.
It sets the named length register to the value given,
and as a side effect all prefixes are zeroed.
Example
\day=345
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
DimenParameter(java.lang.String name)
Creates a new object. |
Method Summary | |
void |
configure(Configuration config)
Configure an object according to a given Configuration. |
protected java.lang.String |
getKey(Context context,
TokenSource source,
Typesetter typesetter)
Return the key (the name of the primitive) for the register. |
void |
init(Context context,
TokenSource source,
Typesetter typesetter)
Initialize the Code with some value coming from a Token source. |
Methods inherited from class de.dante.extex.interpreter.primitives.register.dimen.DimenPrimitive |
advance, assign, convertCount, convertDimen, divide, expand, multiply, the |
Methods inherited from class de.dante.extex.interpreter.type.AbstractAssignment |
execute |
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 DimenParameter(java.lang.String name)
name
- the name for debuggingMethod Detail |
public void configure(Configuration config) throws ConfigurationException
Configurable
configure
in interface Configurable
config
- the configuration object to consider
ConfigurationException
- in case that something went wrongConfigurable.configure(
de.dante.util.framework.configuration.Configuration)
protected java.lang.String getKey(Context context, TokenSource source, Typesetter typesetter)
getKey
in class AbstractDimen
context
- the interpreter context to usesource
- the source for new tokenstypesetter
- the typesetter
AbstractDimen.getKey(
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter)
public void init(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
init
in interface InitializableCode
context
- the interpreter contextsource
- the source of information for the initializationtypesetter
- the typesetter
InterpreterException
- in case of an errorInitializableCode.init(
de.dante.extex.interpreter.context.Context, TokenSource, Typesetter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |