|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.max.context.ContextImpl
public class ContextImpl
This is a reference implementation for an interpreter context.
The groups are implemented as a linked list of single groups. In contrast to
the Knuthian implementation in
Several operations have to be dealt with:
Group is created with the old
one as next group.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
ContextImpl()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
addUnit(UnitInfo info)
Add a unit to the list of loaded units. |
void |
afterGroup(AfterGroupObserver observer)
Register a observer to be called at the end of the group. |
void |
afterGroup(Token t)
Add a token to the tokens inserted after the group has been closed. |
void |
clearSplitMarks()
This method clears all split marks. |
void |
closeGroup(Typesetter typesetter,
TokenSource source)
Perform all actions required upon the closing of a group. |
void |
configure(Configuration configuration)
Configure an object according to a given Configuration. |
void |
enableLogging(java.util.logging.Logger logger)
Setter for the logger. |
java.lang.String |
esc(java.lang.String name)
Attach the current escape character in front of a name and return the result. |
java.lang.String |
esc(Token token)
This method is meant to produce a printable version of a control sequence for error messages. |
UnicodeChar |
escapechar()
Return the current escape character or \0 |
java.lang.Object |
get(java.lang.Object extension,
java.lang.Object key)
Getter for a value from an extended section of the context. |
Token |
getAfterassignment()
Getter for the after assignment token. |
Tokens |
getBottomMark(java.lang.Object name)
Getter for the bottom mark. |
Box |
getBox(java.lang.String name)
Getter for the box register. |
Catcode |
getCatcode(UnicodeChar uc)
Get the Catcode for a given Unicode character. |
Code |
getCode(CodeToken t)
Convenience method to get the code assigned to a Token. |
Conditional |
getConditional()
Getter for the currently active conditional. |
Count |
getCount(java.lang.String name)
Getter for the count register. |
FixedCount |
getCountOption(java.lang.String name)
Getter for a count register. |
MathDelimiter |
getDelcode(UnicodeChar c)
Getter for the delimiter code mapping. |
Dimen |
getDimen(java.lang.String name)
Get the current value of the dimen register with a given name. |
FixedDimen |
getDimenOption(java.lang.String name)
Getter for a dimen register. |
int |
getErrorCount()
Getter for the error count. |
Tokens |
getFirstMark(java.lang.Object name)
Getter for the first mark. |
Font |
getFont(java.lang.String name)
Getter for a current font register. |
CoreFontFactory |
getFontFactory()
Getter for the font factory. |
Glue |
getGlue(java.lang.String name)
Getter for a glue register. |
FixedGlue |
getGlueOption(java.lang.String name)
Getter for a glue register. |
protected Group |
getGroup()
Getter for group. |
GroupInfo[] |
getGroupInfos()
Getter for the array of group information describing the currently open groups. |
long |
getGroupLevel()
Getter for the group level. |
GroupType |
getGroupType()
Getter for the group type. |
java.lang.String |
getId()
Getter for the id string. |
long |
getIfLevel()
Getter for the current if level. |
InFile |
getInFile(java.lang.String name)
Getter for a input file register. |
Interaction |
getInteraction()
Getter for the interaction. |
Language |
getLanguage(java.lang.String language)
Getter for the hyphenation record for a given language. |
LanguageManager |
getLanguageManager()
Getter for the language manager. |
UnicodeChar |
getLccode(UnicodeChar uc)
Getter for the lccode mapping of upper case characters to their lower case equivalent. |
protected Localizer |
getLocalizer()
Getter for localizer. |
long |
getMagnification()
Getter for the magnification factor in per mille. |
MathCode |
getMathcode(UnicodeChar uc)
Getter for the math code of a character. |
Muskip |
getMuskip(java.lang.String name)
Getter for a muskip register. |
java.lang.String |
getNamespace()
Getter for the current name space. |
OutFile |
getOutFile(java.lang.String name)
Getter for an output file descriptor. |
ParagraphShape |
getParshape()
Getter for the parshape. |
FixedCount |
getSfcode(UnicodeChar uc)
Getter for the space factor code of a character. |
Tokens |
getSplitBottomMark(java.lang.Object name)
Getter for the split bottom mark. |
Tokens |
getSplitFirstMark(java.lang.Object name)
Getter for the split first mark. |
TokenStream |
getStandardTokenStream()
Getter for standardTokenStream. |
TokenFactory |
getTokenFactory()
Getter for the token factory. |
Tokenizer |
getTokenizer()
Getter for the tokenizer. |
java.lang.String |
getTokensOption(java.lang.String name)
Getter for a token register. |
Tokens |
getToks(java.lang.String name)
Getter for the Tokens
register. |
FixedTokens |
getToksOption(java.lang.String name)
Getter for a tokens register. |
Tokens |
getToksOrNull(java.lang.String name)
Getter for the toks
register. |
Tokens |
getTopMark(java.lang.Object name)
Getter for the top mark. |
TypesettingContext |
getTypesettingContext()
Getter for the typesetting context. |
TypesettingContextFactory |
getTypesettingContextFactory()
Getter for the typesetting context factory. |
UnicodeChar |
getUccode(UnicodeChar lc)
Getter for the uccode mapping of lower case characters to their upper case equivalent. |
int |
incrementErrorCount()
Increment the error count by 1. |
boolean |
isGlobalGroup()
Test whether this group is the first one, which means that there is no group before and closing this group would fail. |
void |
openGroup(GroupType type,
Locator locator,
Token start)
This method can be used to open another group. |
Conditional |
popConditional()
Pop the management information for a conditional from the stack and return it. |
Direction |
popDirection()
Pop a direction from the direction stack. |
void |
pushConditional(Locator locator,
boolean isIfThenElse,
Code primitive,
long branch,
boolean neg)
Put a value onto the conditional stack. |
void |
pushDirection(Direction dir)
Push a direction onto the direction stack. |
java.lang.Object |
readResolve()
This method maps instances to their normal representations if required. |
void |
receiveLoad(TokenSource source,
Typesetter typesetter)
Receive a notification about a load event. |
void |
registerCodeChangeObserver(Token token,
CodeObserver observer)
Register an observer for code change events. |
void |
registerConditionalObserver(ConditionalObserver observer)
Register an observer for conditional events. |
void |
registerCountObserver(java.lang.String name,
CountObserver observer)
Register an observer for count change events. |
void |
registerDimenObserver(java.lang.String name,
DimenObserver observer)
Register an observer for dimen change events. |
void |
registerGlueObserver(java.lang.String name,
GlueObserver observer)
Register an observer for glue change events. |
void |
registerGroupObserver(GroupObserver observer)
Register an observer for group change events. |
void |
registerInteractionObserver(InteractionObserver observer)
Register an observer for interaction mode change events. |
void |
registerLoadObserver(LoadedObserver observer)
Register an observer for load events. |
void |
registerTokensObserver(java.lang.String name,
TokensObserver observer)
Register an observer for tokens change events. |
void |
set(Color color,
boolean global)
Setter for the color in the current typesetting context. |
void |
set(Direction direction,
boolean global)
Setter for the direction in the current typesetting context. |
void |
set(Font font,
boolean global)
Setter for the font in the current typesetting context. |
void |
set(Language language,
boolean global)
Setter for the language in the current typesetting context. |
void |
set(java.lang.Object extension,
java.lang.Object key,
java.lang.Object value,
boolean global)
Setter for a value from an extended section of the context. |
void |
set(TypesettingContext context,
boolean global)
Setter for the typesetting context in the specified groups. |
void |
setAfterassignment(Token token)
Setter for the after assignment token. |
void |
setBox(java.lang.String name,
Box value,
boolean global)
Setter for the box register in
the current group. |
void |
setCatcode(UnicodeChar c,
Catcode catcode,
boolean global)
Setter for the catcode of a character in the specified groups. |
void |
setCode(CodeToken t,
Code code,
boolean global)
Setter for the code assigned to a Token. |
void |
setCount(java.lang.String name,
long value,
boolean global)
Setter for the count register in all
requested groups. |
void |
setCountOption(java.lang.String name,
long value)
Setter for a count register. |
void |
setDelcode(UnicodeChar c,
MathDelimiter delimiter,
boolean global)
Setter for the delimiter code mapping. |
void |
setDimen(java.lang.String name,
Dimen value,
boolean global)
Setter for the Dimen register in all
requested groups. |
void |
setDimen(java.lang.String name,
long value,
boolean global)
Setter for the Dimen register in all
requested groups. |
void |
setFont(java.lang.String name,
Font font,
boolean global)
Setter for font registers. |
void |
setFontFactory(CoreFontFactory factory)
Setter for the font factory. |
void |
setGlue(java.lang.String name,
Glue value,
boolean global)
Setter for a glue register. |
void |
setId(java.lang.String theId)
Setter for the id string. |
void |
setInFile(java.lang.String name,
InFile file,
boolean global)
Setter for the InFile register
in all requested groups. |
void |
setInteraction(Interaction interaction)
Setter for the interaction in all requested groups. |
void |
setLanguageManager(LanguageManager manager)
Setter for the language manager. |
void |
setLccode(UnicodeChar uc,
UnicodeChar lc,
boolean global)
Declare the translation from an upper case character to a lower case character. |
void |
setMagnification(long mag,
boolean lock)
Setter for the magnification. |
void |
setMark(java.lang.Object name,
Tokens mark)
Setter for a mark. |
void |
setMathcode(UnicodeChar uc,
MathCode code,
boolean global)
Setter for the math code of a character |
void |
setMuskip(java.lang.String name,
Muskip value,
boolean global)
Setter for a muskip register. |
void |
setNamespace(java.lang.String namespace,
boolean global)
Setter for the name space. |
void |
setOutFile(java.lang.String name,
OutFile file,
boolean global)
Setter for a output file descriptor. |
void |
setParshape(ParagraphShape shape)
Setter for the paragraph shape. |
void |
setSfcode(UnicodeChar uc,
Count code,
boolean global)
Setter for the space factor code in the specified groups. |
void |
setSplitMark(java.lang.Object name,
Tokens mark)
Setter for a split mark. |
void |
setStandardTokenStream(TokenStream standardTokenStream)
Setter for standardTokenStream. |
void |
setTokenFactory(TokenFactory factory)
Setter for the token factory |
void |
setToks(java.lang.String name,
Tokens toks,
boolean global)
Setter for the Tokens
register in the specified groups. |
void |
setUccode(UnicodeChar lc,
UnicodeChar uc,
boolean global)
Declare the translation from a lower case character to an upper case character. |
void |
startMarks()
This method indicated that a new page is started. |
java.util.Iterator<UnitInfo> |
unitIterator()
Get an iterator to enumerate all unit infos. |
void |
unregisterCodeChangeObserver(Token name,
CodeObserver observer)
Remove a registered observer for code change events. |
void |
unregisterConditionalObserver(ConditionalObserver observer)
Remove a registered observer for conditional events. |
void |
unregisterCountObserver(java.lang.String name,
CountObserver observer)
Remove a registered observer for count change events. |
void |
unregisterDimenObserver(java.lang.String name,
DimenObserver observer)
Remove a registered observer for dimen change events. |
void |
unregisterGlueObserver(java.lang.String name,
GlueObserver observer)
Remove a registered observer for glue change events. |
void |
unregisterGroupObserver(GroupObserver observer)
Remove a registered observer for group change events. |
void |
unregisterInteractionObserver(InteractionObserver observer)
Remove a registered observer for interaction mode change events. |
void |
unregisterLoadObserver(LoadedObserver observer)
Remove a registered observer for load events. |
void |
unregisterTokensChangeObserver(java.lang.String name,
TokensObserver observer)
Remove a registered observer for tokens change events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public ContextImpl()
| Method Detail |
|---|
public void addUnit(UnitInfo info)
addUnit in interface Contextinfo - the info of the unit loadedunitIterator(),
Context.addUnit(
org.extex.interpreter.unit.UnitInfo)public void afterGroup(AfterGroupObserver observer)
afterGroup in interface ContextGroupobserver - the observer to registerContextGroup.afterGroup(
AfterGroupObserver)public void afterGroup(Token t)
afterGroup in interface ContextGroupt - the token to addContextGroup.afterGroup(
org.extex.scanner.type.token.Token)public void clearSplitMarks()
clearSplitMarks in interface ContextMarkContextMark.clearSplitMarks()
public void closeGroup(Typesetter typesetter,
TokenSource source)
throws HelpingException
closeGroup in interface ContextGrouptypesetter - the typesetter to invoke if neededsource - the source to get Tokens from if needed
HelpingException - in case of an errorContextGroup.closeGroup(
org.extex.typesetter.Typesetter, org.extex.interpreter.TokenSource)public void configure(Configuration configuration)
configure in interface Configurableconfiguration - 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 logger)
enableLogging in interface LogEnabledlogger - the logger to useLogEnabled.enableLogging(
java.util.logging.Logger)public java.lang.String esc(java.lang.String name)
This method is meant to produce a printable version of a control sequence for error messages.
esc in interface Contextname - the name of the macro
Context.esc(java.lang.String)public java.lang.String esc(Token token)
esc in interface Contexttoken - the token
Context.esc(
org.extex.scanner.type.token.Token)public UnicodeChar escapechar()
\0 if it is undefined.
The escape character is retrieved from the count register
\escapechar.
- Specified by:
escapechar in interface Context
- Returns:
- the escape character
- See Also:
Context.escapechar()
public java.lang.Object get(java.lang.Object extension,
java.lang.Object key)
Context
get in interface Contextextension - the name of the extensionkey - the key for the value
Context.get( java.lang.Object,
java.lang.Object)public Token getAfterassignment()
getAfterassignment in interface ContextContext.getAfterassignment()public Tokens getBottomMark(java.lang.Object name)
getBottomMark in interface ContextMarkname - the name of the mark
ContextMark.getBottomMark(
java.lang.Object)public Box getBox(java.lang.String name)
box register.
Count registers are named, either with a number or an arbitrary string.
getBox in interface Contextname - the name or number of the count register
null if it is voidContext.getBox(java.lang.String)public Catcode getCatcode(UnicodeChar uc)
Catcode for a given Unicode character.
getCatcode in interface Tokenizeruc - the Unicode character to get the catcode for.
Tokenizer.getCatcode(org.extex.core.UnicodeChar)
public Code getCode(CodeToken t)
throws HelpingException
getCode in interface ContextCodet - the Token to differentiate on
HelpingException - in case of an errorContextCode.getCode(
org.extex.scanner.type.token.CodeToken)public Conditional getConditional()
getConditional in interface Contextnull if noneContext.getConditional()public Count getCount(java.lang.String name)
count register. Count
registers are named, either with a number or an arbitrary string.
The return value is guaranteed to be a valid object. null
will never be returned.
getCount in interface ContextCountname - the name or number of the count register
null if it is not definedContextCount.getCount( java.lang.String)public FixedCount getCountOption(java.lang.String name)
getCountOption in interface DocumentWriterOptionsgetCountOption in interface TokenStreamOptionsgetCountOption in interface PageContextgetCountOption in interface TypesetterOptionsname - the name of the register
TypesetterOptions.getCountOption(
java.lang.String)public MathDelimiter getDelcode(UnicodeChar c)
getDelcode in interface Contextc - the character to which the delimiter code is assigned
Context.getDelcode(
org.extex.core.UnicodeChar)public Dimen getDimen(java.lang.String name)
getDimen in interface ContextDimenname - the name or the number of the register
ContextDimen.getDimen( java.lang.String)public FixedDimen getDimenOption(java.lang.String name)
getDimenOption in interface DocumentWriterOptionsgetDimenOption in interface PageContextgetDimenOption in interface TypesetterOptionsname - the name of the register
TypesetterOptions.getDimenOption(
java.lang.String)public int getErrorCount()
ContextErrorCount
getErrorCount in interface ContextErrorCountContextErrorCount.getErrorCount()public Tokens getFirstMark(java.lang.Object name)
ContextMark
getFirstMark in interface ContextMarkname - the name of the mark
ContextMark.getFirstMark(
java.lang.Object)public Font getFont(java.lang.String name)
ContextFont
getFont in interface ContextFontgetFont in interface PageContextgetFont in interface TypesetterOptionsname - the name or the number of the register
null if none is setContextFont.getFont(java.lang.String)public CoreFontFactory getFontFactory()
ContextFont
getFontFactory in interface ContextFontContextFont.getFontFactory()public Glue getGlue(java.lang.String name)
Context
getGlue in interface Contextname - the name of the glue register to acquire.
null if
none is setContext.getGlue(java.lang.String)public FixedGlue getGlueOption(java.lang.String name)
PageContext
getGlueOption in interface PageContextgetGlueOption in interface TypesetterOptionsname - the name of the register
TypesetterOptions.getGlueOption(java.lang.String)protected Group getGroup()
public GroupInfo[] getGroupInfos()
getGroupInfos in interface ContextGroupContextGroup.getGroupInfos()public long getGroupLevel()
getGroupLevel in interface ContextGroupContextGroup.getGroupLevel()public GroupType getGroupType()
getGroupType in interface ContextGroupContextGroup.getGroupType()public java.lang.String getId()
null if not known yet.
getId in interface ContextContext.getId()public long getIfLevel()
getIfLevel in interface ContextContext.getIfLevel()public InFile getInFile(java.lang.String name)
null then the default input stream is used.
getInFile in interface ContextFilename - the name or the number of the file register
ContextFile.getInFile( java.lang.String)public Interaction getInteraction()
getInteraction in interface ContextInteractionContextInteraction.getInteraction()
public Language getLanguage(java.lang.String language)
throws HelpingException
getLanguage in interface Contextlanguage - the name of the language to use
HelpingException - in case of an errorContext.getLanguage(String)public LanguageManager getLanguageManager()
getLanguageManager in interface ContextContext.getLanguageManager()public UnicodeChar getLccode(UnicodeChar uc)
getLccode in interface ContextgetLccode in interface PageContextgetLccode in interface TypesetterOptionsuc - the upper case character
Context.getLccode(
org.extex.core.UnicodeChar)protected Localizer getLocalizer()
public long getMagnification()
getMagnification in interface DocumentWriterOptionsgetMagnification in interface ContextContext.getMagnification()public MathCode getMathcode(UnicodeChar uc)
getMathcode in interface Contextuc - the character index
Context.getMathcode(
org.extex.core.UnicodeChar)public Muskip getMuskip(java.lang.String name)
getMuskip in interface ContextgetMuskip in interface PageContextgetMuskip in interface TypesetterOptionsname - the name or the number of the register
null if none is setContext.getMuskip( java.lang.String)public java.lang.String getNamespace()
getNamespace in interface ContextgetNamespace in interface TokenizergetNamespace in interface PageContextgetNamespace in interface TypesetterOptionsContext.getNamespace()public OutFile getOutFile(java.lang.String name)
getOutFile in interface ContextFilegetOutFile in interface PageContextname - the name or the number of the file register
ContextFile.getOutFile( java.lang.String)public ParagraphShape getParshape()
getParshape in interface ContextgetParshape in interface PageContextgetParshape in interface TypesetterOptionsnull if no special shape is
presentContext.getParshape()public FixedCount getSfcode(UnicodeChar uc)
getSfcode in interface Contextuc - the Unicode character
Context.getSfcode(
org.extex.core.UnicodeChar)public Tokens getSplitBottomMark(java.lang.Object name)
getSplitBottomMark in interface ContextMarkname - the name of the mark
ContextMark.getSplitBottomMark(
java.lang.Object)public Tokens getSplitFirstMark(java.lang.Object name)
getSplitFirstMark in interface ContextMarkname - the name of the mark
ContextMark.getSplitFirstMark(
java.lang.Object)public TokenStream getStandardTokenStream()
getStandardTokenStream in interface ContextContext.getStandardTokenStream()public TokenFactory getTokenFactory()
getTokenFactory in interface ContextgetTokenFactory in interface PageContextgetTokenFactory in interface TypesetterOptionsContext.setTokenFactory(TokenFactory)public Tokenizer getTokenizer()
getTokenizer in interface ContextContext.setCatcode(UnicodeChar, Catcode, boolean)public java.lang.String getTokensOption(java.lang.String name)
DocumentWriterOptions
getTokensOption in interface DocumentWriterOptionsname - the name of the register
DocumentWriterOptions.getTokensOption(java.lang.String)public Tokens getToks(java.lang.String name)
ContextTokensTokens
register. Tokens registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
getToks in interface ContextTokensname - the name or number of the token register
ContextTokens.getToks(java.lang.String)public FixedTokens getToksOption(java.lang.String name)
TokenStreamOptions
getToksOption in interface TokenStreamOptionsname - the name of the register
TokenStreamOptions.getToksOption(
java.lang.String)public Tokens getToksOrNull(java.lang.String name)
ContextTokenstoks
register. Tokens registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
getToksOrNull in interface ContextTokensname - the name or number of the token register
null if it is not definedContextTokens.getToksOrNull(java.lang.String)public Tokens getTopMark(java.lang.Object name)
ContextMark
getTopMark in interface ContextMarkname - the name of the mark
ContextMark.getTopMark(
java.lang.Object)public TypesettingContext getTypesettingContext()
getTypesettingContext in interface ContextgetTypesettingContext in interface PageContextgetTypesettingContext in interface TypesetterOptionsTypesetterOptions.getTypesettingContext()public TypesettingContextFactory getTypesettingContextFactory()
ContextInternals
getTypesettingContextFactory in interface ContextInternalsgetTypesettingContextFactory in interface PageContextgetTypesettingContextFactory in interface TypesetterOptionsContextInternals.getTypesettingContextFactory()public UnicodeChar getUccode(UnicodeChar lc)
Context
getUccode in interface Contextlc - the upper case character
Context.getUccode(
org.extex.core.UnicodeChar)public int incrementErrorCount()
ContextErrorCount
incrementErrorCount in interface ContextErrorCountContextErrorCount.incrementErrorCount()public boolean isGlobalGroup()
ContextGroup
isGlobalGroup in interface ContextGrouptrue iff this is the first groupContextGroup.isGlobalGroup()
public void openGroup(GroupType type,
Locator locator,
Token start)
throws HelpingException
openGroup in interface ContextGrouptype - the type of the grouplocator - the locator for the startstart - the token which started the group
ConfigurationException - in case of an error in the configuration,
e.g. the class for the group can not be determined.
HelpingException - in case of an errorcloseGroup(Typesetter, TokenSource),
ContextGroup.openGroup(
org.extex.interpreter.context.group.GroupType,
org.extex.core.Locator, org.extex.scanner.type.token.Token)
public Conditional popConditional()
throws HelpingException
null is returned.
popConditional in interface ContextHelpingException - in case of an errorContext.popConditional()public Direction popDirection()
popDirection in interface Contextnull if the
stack is emptyContext.popDirection()
public void pushConditional(Locator locator,
boolean isIfThenElse,
Code primitive,
long branch,
boolean neg)
pushConditional in interface Contextlocator - the locator for the start of the if statementisIfThenElse - the value to pushprimitive - the name of the primitive which triggered this operationbranch - the branch numberneg - negation indicatorContext.pushConditional(
org.extex.core.Locator, boolean, org.extex.interpreter.type.Code,
long, boolean)public void pushDirection(Direction dir)
pushDirection in interface Contextdir - the directionContext.pushDirection(
org.extex.typesetter.tc.Direction)
public java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - in case of an error
public void receiveLoad(TokenSource source,
Typesetter typesetter)
throws HelpingException
receiveLoad in interface LoadedObservablesource - the token sourcetypesetter - the typesetter
HelpingException - in case of an errorLoadedObservable.receiveLoad(
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)
public void registerCodeChangeObserver(Token token,
CodeObserver observer)
registerCodeChangeObserver in interface CodeObservabletoken - the token to be observed. This should be a macro or active
character token.observer - the observer to receive the eventsCodeObservable.registerCodeChangeObserver(
org.extex.scanner.type.token.Token,
org.extex.interpreter.context.observer.code.CodeObserver)public void registerConditionalObserver(ConditionalObserver observer)
registerConditionalObserver in interface ConditionalObservableobserver - the observer to receive the eventsConditionalObservable.registerConditionalObserver(
org.extex.interpreter.context.observer.conditional.ConditionalObserver)
public void registerCountObserver(java.lang.String name,
CountObserver observer)
A single count register can be observed by giving a name of the count
register to observe. Only changes to this register trigger the
notification. If this name is null the changes to all
registers are reported to the observer.
registerCountObserver in interface CountObservablename - the name or the number of the registerobserver - the observer to receive the eventsCountObservable.registerCountObserver(
java.lang.String,
org.extex.interpreter.context.observer.count.CountObserver)
public void registerDimenObserver(java.lang.String name,
DimenObserver observer)
A single dimen register can be observed by giving a name of the dimen
register to observe. Only changes to this register trigger the
notification. If this name is null the changes to all
registers are reported to the observer.
registerDimenObserver in interface DimenObservablename - the name or the number of the registerobserver - the observer to receive the eventsDimenObservable.registerDimenObserver(
java.lang.String,
org.extex.interpreter.context.observer.dimen.DimenObserver)
public void registerGlueObserver(java.lang.String name,
GlueObserver observer)
A single glue register can be observed by giving a name of the glue
register to observe. Only changes to this register trigger the
notification. If this name is null the changes to all
registers are reported to the observer.
registerGlueObserver in interface GlueObservablename - the name or the number of the registerobserver - the observer to receive the eventsGlueObservable.registerGlueObserver(
java.lang.String,
org.extex.interpreter.context.observer.glue.GlueObserver)public void registerGroupObserver(GroupObserver observer)
registerGroupObserver in interface GroupObservableobserver - the observer to receive the eventsGroupObservable.registerGroupObserver(
org.extex.interpreter.context.observer.group.GroupObserver)public void registerInteractionObserver(InteractionObserver observer)
A single count register can be observed by giving a name of the count
register to observe. Only changes to this register trigger the
notification. If this name is null the changes to all
registers are reported to the observer.
registerInteractionObserver in interface InteractionObservableobserver - the observer to receive the eventsInteractionObservable.registerInteractionObserver(
org.extex.interpreter.context.observer.interaction.InteractionObserver)public void registerLoadObserver(LoadedObserver observer)
registerLoadObserver in interface LoadedObservableobserver - the observer to receive the eventsLoadedObservable.registerLoadObserver(
org.extex.interpreter.context.observer.load.LoadedObserver)
public void registerTokensObserver(java.lang.String name,
TokensObserver observer)
registerTokensObserver in interface TokensObservablename - the token to be observed. This should be a macro or active
character token.observer - the observer to receive the eventsTokensObservable.registerTokensObserver(
java.lang.String,
org.extex.interpreter.context.observer.tokens.TokensObserver)
public void set(Color color,
boolean global)
throws ConfigurationException
set in interface Contextcolor - the new colorglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
ConfigurationException - in case of an error in the configuration.Context.set( org.extex.color.Color,
boolean)
public void set(Direction direction,
boolean global)
throws ConfigurationException
set in interface Contextdirection - the new directionglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
ConfigurationException - in case of an error in the configuration.Context.set(
org.extex.typesetter.tc.Direction, boolean)
public void set(Font font,
boolean global)
throws ConfigurationException
set in interface Contextfont - the new fontglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
ConfigurationException - in case of an error in the configuration.Context.set(
org.extex.typesetter.tc.font.Font, boolean)
public void set(Language language,
boolean global)
throws ConfigurationException
set in interface Contextlanguage - the new languageglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
ConfigurationException - in case of an error in the configuration.Context.set(
org.extex.language.Language, boolean)
public void set(java.lang.Object extension,
java.lang.Object key,
java.lang.Object value,
boolean global)
set in interface Contextextension - the name of the extensionkey - the key for the valuevalue - the value to storeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.set( java.lang.Object,
java.lang.Object, java.lang.Object, boolean)
public void set(TypesettingContext context,
boolean global)
set in interface Contextcontext - the new context to useglobal - if true then the new value is set in all
groups, otherwise only in the current group.Context.getTypesettingContext()public void setAfterassignment(Token token)
setAfterassignment in interface Contexttoken - the after assignment tokenContext.setAfterassignment(
org.extex.scanner.type.token.Token)
public void setBox(java.lang.String name,
Box value,
boolean global)
box register in
the current group. Count registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
setBox in interface Contextname - the name or the number of the registervalue - the new value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setBox( java.lang.String,
org.extex.interpreter.type.box.Box, boolean)
public void setCatcode(UnicodeChar c,
Catcode catcode,
boolean global)
setCatcode in interface Contextc - the character to assign a catcode forcatcode - the catcode of the characterglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setCatcode(
org.extex.core.UnicodeChar, org.extex.scanner.type.Catcode, boolean)
public void setCode(CodeToken t,
Code code,
boolean global)
throws HelpingException
ActiveCharacterToken
or a
ControlSequenceToken.
setCode in interface ContextCodet - the Token to set the code forcode - the code for the tokenglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of an errorContextCode.setCode(
org.extex.scanner.type.token.CodeToken,
org.extex.interpreter.type.Code, boolean)
public void setCount(java.lang.String name,
long value,
boolean global)
throws HelpingException
count register in all
requested groups. Count registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
setCount in interface ContextCountname - the name or the number of the registervalue - the new value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of an errorContextCount.setCount( java.lang.String,
long, boolean)
public void setCountOption(java.lang.String name,
long value)
throws GeneralException
setCountOption in interface PageContextsetCountOption in interface TypesetterOptionsname - the name of the registervalue - the value
GeneralException - in case of an errorTypesetterOptions.setCountOption(
java.lang.String, long)
public void setDelcode(UnicodeChar c,
MathDelimiter delimiter,
boolean global)
setDelcode in interface Contextc - the character to which the delimiter code is assigneddelimiter - the delimiter codeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setDelcode(
org.extex.core.UnicodeChar,
org.extex.typesetter.type.math.MathDelimiter, boolean)
public void setDimen(java.lang.String name,
Dimen value,
boolean global)
throws HelpingException
Dimen register in all
requested groups. Dimen registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
setDimen in interface ContextDimenname - the name or the number of the registervalue - the new value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of problems in an observerContextDimen.setDimen( java.lang.String,
org.extex.core.dimen.Dimen, boolean)
public void setDimen(java.lang.String name,
long value,
boolean global)
throws HelpingException
Dimen register in all
requested groups. Dimen registers are named, either with a number or an
arbitrary string. The numbered registers where limited to 256 in
setDimen in interface ContextDimenname - the name or the number of the registervalue - the new value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of problems in an observerContextDimen.setDimen(
java.lang.String, long, boolean)
public void setFont(java.lang.String name,
Font font,
boolean global)
setFont in interface ContextFontname - the name or the number of the registerfont - the new Font valueglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContextFont.setFont( java.lang.String,
org.extex.typesetter.tc.font.Font, boolean)public void setFontFactory(CoreFontFactory factory)
setFontFactory in interface ContextFontfactory - the font factory to set.ContextFont.setFontFactory(
org.extex.font.CoreFontFactory)
public void setGlue(java.lang.String name,
Glue value,
boolean global)
throws HelpingException
setGlue in interface Contextname - the name of the glue registervalue - the glue value to setglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of an errorContext.setGlue( java.lang.String,
org.extex.core.glue.Glue, boolean)public void setId(java.lang.String theId)
setId in interface ContexttheId - the id stringContext.setId(java.lang.String)
public void setInFile(java.lang.String name,
InFile file,
boolean global)
InFile register
in all requested groups. InFile registers are named, either with a number
or an arbitrary string. The numbered registers where limited to 16 in
setInFile in interface ContextFilename - the name or the number of the file registerfile - the input file descriptorglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContextFile.setInFile( java.lang.String,
org.extex.scanner.type.file.InFile, boolean)
public void setInteraction(Interaction interaction)
throws HelpingException
setInteraction in interface ContextInteractioninteraction - the new value of the interaction
HelpingException - in case of an errorContextInteraction.setInteraction(
org.extex.interpreter.interaction.Interaction)
public void setLanguageManager(LanguageManager manager)
throws ConfigurationException
setLanguageManager in interface ContextsetLanguageManager in interface LanguageManagerCarriermanager - the language manager to carry
ConfigurationException - in case of an configuration errorLanguageManagerCarrier.setLanguageManager(
org.extex.language.LanguageManager)
public void setLccode(UnicodeChar uc,
UnicodeChar lc,
boolean global)
setLccode in interface Contextuc - upper case characterlc - lower case equivalentglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setLccode(
org.extex.core.UnicodeChar, org.extex.core.UnicodeChar, boolean)
public void setMagnification(long mag,
boolean lock)
throws HelpingException
setMagnification in interface Contextmag - the new magnification factorlock - lock the new value. Thus it can not be alterd afterwards.
HelpingException - in case that the magnification factor is not in
the allowed range or that the magnification has been set to a
different value earlier.Context.setMagnification(long,
boolean)
public void setMark(java.lang.Object name,
Tokens mark)
setMark in interface ContextMarksetMark in interface PageContextname - the name of the markmark - the vale of the markContextMark.setMark( java.lang.Object,
org.extex.scanner.type.tokens.Tokens)
public void setMathcode(UnicodeChar uc,
MathCode code,
boolean global)
setMathcode in interface Contextuc - the character indexcode - the new math codeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setMathcode(
org.extex.core.UnicodeChar, MathCode, boolean)
public void setMuskip(java.lang.String name,
Muskip value,
boolean global)
setMuskip in interface Contextname - the name or the number of the registervalue - the new valueglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setMuskip( java.lang.String,
org.extex.core.muskip.Muskip, boolean)
public void setNamespace(java.lang.String namespace,
boolean global)
setNamespace in interface Contextnamespace - the new name spaceglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setNamespace(
java.lang.String, boolean)
public void setOutFile(java.lang.String name,
OutFile file,
boolean global)
setOutFile in interface ContextFilesetOutFile in interface PageContextname - the name or the number of the file registerfile - the descriptor of the output fileglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContextFile.setOutFile( java.lang.String,
org.extex.scanner.type.file.OutFile, boolean)public void setParshape(ParagraphShape shape)
setParshape in interface ContextsetParshape in interface PageContextsetParshape in interface TypesetterOptionsshape - the new paragraph shapeContext.setParshape(
org.extex.typesetter.paragraphBuilder.ParagraphShape)
public void setSfcode(UnicodeChar uc,
Count code,
boolean global)
setSfcode in interface Contextuc - the Unicode character to assign the sfcode tocode - the new sfcodeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setSfcode(
org.extex.core.UnicodeChar, org.extex.core.count.Count, boolean)
public void setSplitMark(java.lang.Object name,
Tokens mark)
setSplitMark in interface ContextMarkname - the name of the markmark - the vale of the markContextMark.setSplitMark(
java.lang.Object, org.extex.scanner.type.tokens.Tokens)public void setStandardTokenStream(TokenStream standardTokenStream)
setStandardTokenStream in interface ContextstandardTokenStream - the standardTokenStream to set.Context.setStandardTokenStream(
org.extex.scanner.api.TokenStream)public void setTokenFactory(TokenFactory factory)
setTokenFactory in interface Contextfactory - the new value of the factoryContext.setTokenFactory(
org.extex.scanner.type.token.TokenFactory)
public void setToks(java.lang.String name,
Tokens toks,
boolean global)
throws HelpingException
Tokens
register in the specified groups. Tokens registers are named, either with
a number or an arbitrary string. The numbered registers where limited to
256 in
setToks in interface ContextTokensname - the name or the number of the registertoks - the new value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
HelpingException - in case of a problem in an observerContextTokens.setToks(java.lang.String,
org.extex.scanner.type.tokens.Tokens, boolean)
public void setUccode(UnicodeChar lc,
UnicodeChar uc,
boolean global)
setUccode in interface Contextlc - lower case characteruc - uppercase equivalentglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyContext.setUccode(
org.extex.core.UnicodeChar, org.extex.core.UnicodeChar, boolean)public void startMarks()
startMarks in interface ContextMarkContextMark.startMarks()public java.util.Iterator<UnitInfo> unitIterator()
unitIterator in interface ContextContext.unitIterator()
public void unregisterCodeChangeObserver(Token name,
CodeObserver observer)
unregisterCodeChangeObserver in interface CodeObservablename - the token to be observed. This should be a macro or active
character token.observer - the observer to receive the eventsCodeObservable.unregisterCodeChangeObserver(
org.extex.scanner.type.token.Token,
org.extex.interpreter.context.observer.code.CodeObserver)public void unregisterConditionalObserver(ConditionalObserver observer)
unregisterConditionalObserver in interface ConditionalObservableobserver - the observer to receive the eventsConditionalObservable.unregisterConditionalObserver(
org.extex.interpreter.context.observer.conditional.ConditionalObserver)
public void unregisterCountObserver(java.lang.String name,
CountObserver observer)
A single count register can be observed by giving a name of the count register to observe. The de-registration removes all instances of the observer for this register. If none is registered then nothing happens.
If this name is null then the observer for all registers
is removed. Note that the observers for named registers are not effected.
They have to be unregistered individually.
unregisterCountObserver in interface CountObservablename - the name or the number of the registerobserver - the observer to receive the eventsCountObservable.unregisterCountObserver(
java.lang.String,
org.extex.interpreter.context.observer.count.CountObserver)
public void unregisterDimenObserver(java.lang.String name,
DimenObserver observer)
A single dimen register can be observed by giving a name of the dimen register to observe. The de-registration removes all instances of the observer for this register. If none is registered then nothing happens.
If this name is null then the observer for all registers
is removed. Note that the observers for named registers are not effected.
They have to be unregistered individually.
unregisterDimenObserver in interface DimenObservablename - the name or the number of the registerobserver - the observer to receive the eventsDimenObservable.unregisterDimenObserver(
java.lang.String,
org.extex.interpreter.context.observer.dimen.DimenObserver)
public void unregisterGlueObserver(java.lang.String name,
GlueObserver observer)
A single glue register can be observed by giving a name of the glue register to observe. The de-registration removes all instances of the observer for this register. If none is registered then nothing happens.
If this name is null then the observer for all registers
is removed. Note that the observers for named registers are not effected.
They have to be unregistered individually.
unregisterGlueObserver in interface GlueObservablename - the name or the number of the registerobserver - the observer to receive the eventsGlueObservable.unregisterGlueObserver(
java.lang.String,
org.extex.interpreter.context.observer.glue.GlueObserver)public void unregisterGroupObserver(GroupObserver observer)
unregisterGroupObserver in interface GroupObservableobserver - the observer to receive the eventsGroupObservable.unregisterGroupObserver(
org.extex.interpreter.context.observer.group.GroupObserver)public void unregisterInteractionObserver(InteractionObserver observer)
unregisterInteractionObserver in interface InteractionObservableobserver - the observer to receive the eventsInteractionObservable.unregisterInteractionObserver(
org.extex.interpreter.context.observer.interaction.InteractionObserver)public void unregisterLoadObserver(LoadedObserver observer)
unregisterLoadObserver in interface LoadedObservableobserver - the observer to receive the eventsLoadedObservable.unregisterLoadObserver(
org.extex.interpreter.context.observer.load.LoadedObserver)
public void unregisterTokensChangeObserver(java.lang.String name,
TokensObserver observer)
unregisterTokensChangeObserver in interface TokensObservablename - the token to be observed. This should be a macro or active
character token.observer - the observer to receive the eventsTokensObservable.unregisterTokensChangeObserver(
java.lang.String,
org.extex.interpreter.context.observer.tokens.TokensObserver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||