|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the outside view on an interpreter. It contains everything needed to set it up and make it run.
Method Summary | |
Context |
getContext()
Getter for the context |
ErrorHandler |
getErrorHandler()
Getter for the error handler. |
Interaction |
getInteraction()
Getter for the interaction mode. |
Typesetter |
getTypesetter()
Getter for the typesetter. |
void |
loadFormat(java.io.InputStream stream,
java.lang.String fmt,
java.lang.String contextType,
java.lang.String languageType)
Load the format from an external source. |
void |
loadUnit(java.lang.String name)
Load a unit. |
void |
run()
Process the current token streams by repeatedly reading a single token and processing it until no token is left. |
void |
run(TokenStream stream)
Add a token stream and start processing it. |
Context |
setContext(Context context)
Setter for the context. |
void |
setErrorHandler(ErrorHandler handler)
Setter for the error handler. |
void |
setFontFactory(FontFactory fontFactory)
Setter for the font factory |
void |
setInteraction(Interaction interaction)
Setter for the interaction mode. |
void |
setJobname(java.lang.String jobname)
Setter for the job name. |
void |
setTokenStreamFactory(TokenStreamFactory factory)
Setter for the token stream factory. |
void |
setTypesetter(Typesetter typesetter)
Setter for the typesetter. |
Methods inherited from interface de.dante.extex.interpreter.TokenSource |
addStream, closeAllStreams, closeNextFileStream, execute, executeGroup, expand, getBox, getControlSequence, getFont, getKeyword, getLastToken, getLocator, getNonSpace, getOptionalEquals, getToken, getTokens, getTokenStreamFactory, push, push, push, scanCharacterCode, scanNonSpace, scanNumber, scanNumber, scanRegisterName, scanToken, scanTokens, scanTokensAsString, scanUnprotectedTokens, skipSpace, update |
Method Detail |
public Context getContext()
setContext(Context)
public ErrorHandler getErrorHandler()
null
is
returned.
setErrorHandler(ErrorHandler)
public Interaction getInteraction()
setInteraction(Interaction)
public Typesetter getTypesetter()
setTypesetter(Typesetter)
public void loadFormat(java.io.InputStream stream, java.lang.String fmt, java.lang.String contextType, java.lang.String languageType) throws LoaderException, java.io.IOException
stream
- stream to read fromfmt
- the name of the format to be loaded
java.io.IOException
- in case of an IO error
LoaderException
- in case of an error during loadingpublic void loadUnit(java.lang.String name) throws ConfigurationException
name
- the name of the configuration
ConfigurationException
- in case of an errorpublic void run() throws ConfigurationException, ErrorLimitException, InterpreterException
ConfigurationException
- in case of a configuration error
ErrorLimitException
- in case that the error limit has been
reached
InterpreterException
- in case of another errorrun(TokenStream)
public void run(TokenStream stream) throws ConfigurationException, ErrorLimitException, InterpreterException
stream
- the input stream to consider
ConfigurationException
- in case of a configuration error
ErrorLimitException
- in case that the error limit has been
reached
InterpreterException
- in case of another errorrun()
public Context setContext(Context context)
context
- the interpreter context
getContext()
public void setErrorHandler(ErrorHandler handler)
null
can be used to delete the error handler
currently set.
handler
- the new error handlergetErrorHandler()
public void setFontFactory(FontFactory fontFactory)
fontFactory
- the new font factorypublic void setInteraction(Interaction interaction) throws GeneralException
interaction
- the interaction mode
GeneralException
- in case of an errorgetInteraction()
public void setJobname(java.lang.String jobname) throws GeneralException
jobname
- the new value for the job name
GeneralException
- in case of an errorpublic void setTokenStreamFactory(TokenStreamFactory factory) throws ConfigurationException
factory
- the token stream factory
ConfigurationException
- in case of en error in the configurationpublic void setTypesetter(Typesetter typesetter)
typesetter
- the new typesettergetTypesetter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |