|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.unit.UnitInfo
org.extex.unit.tex.TexUnitInfo
public class TexUnitInfo
This class provides the setup for the unit tex.
Tracing is CountObserver for the controlling count is registered. In this observer the
observer for the real event is registered if this as not been done before and
the value of the controlling count is greater than 0.
This strategies tries to achieve that the overhead for the normal mode of operation is minimized. Here only the controlling cont has to be watched. The observer list for the event to be traced is empty and does not impose any performance overhead.
This count register \tracingonline determines whether the tracing should go into the log file only or put on the standard output stream as well. If the value is less than 1 then the tracing goes to the log file only. Otherwise logging is duplicated to the console as well.
This count register determines whether the execution of commands should be traced. If the value is less or equal than 0 then no tracing is performed. If the value is greater than 0 then the tokens are logged before they are executed.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The field serialVersionUID contains the version number for serialization. |
| Constructor Summary | |
|---|---|
TexUnitInfo()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
configure(Configuration config)
Configure an object according to a given Configuration. |
void |
enableLogging(java.util.logging.Logger log)
Setter for the logger. |
void |
load(Context context,
TokenSource source,
Typesetter typesetter)
Perform a load operation. |
protected java.lang.Object |
readResolve()
Return the singleton constant object after the serialized instance has been read back in. |
void |
receiveLoaded(Context context,
TokenSource source,
Typesetter typesetter)
Receive a notification on the loading of a context. |
| Methods inherited from class org.extex.interpreter.unit.UnitInfo |
|---|
getName, setName, setTypesetter, 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 TexUnitInfo()
| 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)public void enableLogging(java.util.logging.Logger log)
enableLogging in interface LogEnabledlog - the logger to useLogEnabled.enableLogging(
java.util.logging.Logger)
public void load(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException
load in interface Loadercontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an errorLoader.load(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)protected java.lang.Object readResolve()
public void receiveLoaded(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException
receiveLoaded in interface LoadedObservercontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
HelpingException - in case of an errorLoadedObserver.receiveLoaded(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, Typesetter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||