|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Interpreter
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,
ResourceFinder finder)
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(CoreFontFactory 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 org.extex.interpreter.TokenSource |
|---|
addStream, closeAllStreams, closeNextFileStream, execute, executeGroup, expand, expand, getBox, getControlSequence, getFont, getKeyword, getLastToken, getLocator, getNonSpace, getOptionalEquals, getToken, getTokens, getTokenStreamFactory, parse, push, push, push, register, scanCharacterCode, scanNonSpace, scanRegisterName, scanToken, scanTokens, scanTokensAsString, scanUnprotectedTokens, skipSpace, update |
| Methods inherited from interface org.extex.interpreter.parser.CountParser |
|---|
parseInteger, parseNumber |
| Methods inherited from interface org.extex.interpreter.parser.DimenParser |
|---|
parseDimen |
| Methods inherited from interface org.extex.interpreter.parser.GlueParser |
|---|
parseGlue |
| Method Detail |
|---|
Context getContext()
setContext(Context)ErrorHandler getErrorHandler()
null is returned.
setErrorHandler(ErrorHandler)Interaction getInteraction()
setInteraction(Interaction)Typesetter getTypesetter()
setTypesetter(Typesetter)
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 loadedcontextType - name of the context from the configuration to uselanguageType - name of the language from the configuration to use
java.io.IOException - in case of an IO error
LoaderException - in case of an error during loading
void loadUnit(java.lang.String name,
ResourceFinder finder)
throws ConfigurationException
name - the name of the configurationfinder - the resource finder
ConfigurationException - in case of an error
void run()
throws ConfigurationException,
ErrorLimitException,
HelpingException,
TypesetterException
ConfigurationException - in case of a configuration error
ErrorLimitException - in case that the error limit has been reached
HelpingException - in case of another error
TypesetterException - in case of an error in the typesetterrun(TokenStream)
void run(TokenStream stream)
throws ConfigurationException,
ErrorLimitException,
HelpingException,
TypesetterException
stream - the input stream to consider
ConfigurationException - in case of a configuration error
ErrorLimitException - in case that the error limit has been reached
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterrun()Context setContext(Context context)
context - the interpreter context
getContext()void setErrorHandler(ErrorHandler handler)
null can be
used to delete the error handler currently set.
handler - the new error handlergetErrorHandler()void setFontFactory(CoreFontFactory fontFactory)
fontFactory - the new font factory
void setInteraction(Interaction interaction)
throws GeneralException
interaction - the interaction mode
GeneralException - in case of an errorgetInteraction()
void setJobname(java.lang.String jobname)
throws GeneralException
jobname - the new value for the job name
GeneralException - in case of an error
void setTokenStreamFactory(TokenStreamFactory factory)
throws ConfigurationException
factory - the token stream factory
ConfigurationException - in case of en error in the configurationvoid setTypesetter(Typesetter typesetter)
typesetter - the new typesettergetTypesetter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||