|
||||||||||
| 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.IntegerParameter
public class IntegerParameter
This class provides an implementation for the count valued primitives like
\day. It sets the named count 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 | |
|---|---|
IntegerParameter(CodeToken token)
Creates a new object. |
|
IntegerParameter(CodeToken token,
java.lang.String key)
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 numbered count register. |
void |
init(Context context,
TokenSource source,
Typesetter typesetter)
Initialize the Code with some value coming from a String. |
| Methods inherited from class org.extex.unit.tex.register.count.CountPrimitive |
|---|
advance, assign, convertCount, divide, expand, multiply, the |
| 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 IntegerParameter(CodeToken token)
token - the initial token for the primitive
public IntegerParameter(CodeToken token,
java.lang.String key)
token - the initial token for the primitivekey - the key| Method Detail |
|---|
public void configure(Configuration config)
throws ConfigurationException
configure in interface Configurableconfig - the configuration object to consider
ConfigurationException - in case that something went wrongConfigurable.configure(
org.extex.framework.configuration.Configuration)
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 init(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
init in interface InitializableCodeinit in class AbstractCountcontext - the interpreter contextsource - the source of information for the initializationtypesetter - the typesetter
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterInitializableCode.init(
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 | |||||||||