|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Group
This is the implementation of a group object. A group is the container for
all data which might have group local values. In contrast to
| Method Summary | |
|---|---|
void |
afterGroup(AfterGroupObserver observer)
Register an observer to be invoked after the group has been closed. |
void |
afterGroup(Token t)
Add the token to the tokens to be inserted after the group is closed. |
java.lang.Object |
get(java.lang.Object extension,
java.lang.Object key)
Get some extension object stored in the group. |
Tokens |
getAfterGroup()
Getter for the tokens which are inserted after the group has been closed. |
Box |
getBox(java.lang.String name)
Getter for the boxregister. |
Catcode |
getCatcode(UnicodeChar c)
Getter for the catcode of a character. |
Code |
getCode(CodeToken token)
Getter for the definition of an active character or macro. |
Count |
getCount(java.lang.String name)
Getter for the named count register in the current group. |
MathDelimiter |
getDelcode(UnicodeChar uc)
Getter for the delcode of a character. |
Dimen |
getDimen(java.lang.String name)
Getter for the named dimen register in the current group. |
Font |
getFont(java.lang.String name)
Getter for the current font. |
boolean |
getIf(java.lang.String name)
Getter for the boolean value. |
InFile |
getInFile(java.lang.String name)
Getter for the input file descriptor. |
UnicodeChar |
getLccode(UnicodeChar uc)
Getter for the lccode mapping of upper case characters to their lower case equivalent. |
long |
getLevel()
Getter for the group level. |
Locator |
getLocator()
Getter for the locator describing where the group started. |
MathCode |
getMathcode(UnicodeChar uc)
Getter for the math code of a character. |
Muskip |
getMuskip(java.lang.String name)
Getter for the named muskip register in the current group. |
java.lang.String |
getNamespace()
Getter for the current name space. |
Group |
getNext()
Getter for the next group in the linked list. |
OutFile |
getOutFile(java.lang.String name)
Getter for the output file descriptor. |
FixedCount |
getSfcode(UnicodeChar uc)
Getter for the space factor code of a character. |
Glue |
getSkip(java.lang.String name)
Getter for the named skip register in the current group. |
TokenStream |
getStandardTokenStream()
Getter for standardTokenStream. |
Token |
getStart()
Getter for the token which started the group. |
Tokens |
getToks(java.lang.String name)
Getter for the named toks register in the current group. |
Tokens |
getToksOrNull(java.lang.String name)
Getter for the named toks register in the current group. |
GroupType |
getType()
Getter for the group type. |
TypesettingContext |
getTypesettingContext()
Getter for the typesetting context. |
UnicodeChar |
getUccode(UnicodeChar lc)
Getter for the uccode mapping of lower case characters to their upper case equivalent. |
void |
runAfterGroup()
Invoke all registered observers for the end-of-group event. |
void |
set(java.lang.Object extension,
java.lang.Object key,
java.lang.Object value,
boolean global)
Store some extension object in the group. |
void |
setBox(java.lang.String name,
Box value,
boolean global)
Setter for the box
register in all requested groups. |
void |
setCatcode(UnicodeChar c,
Catcode code,
boolean global)
Setter for the catcode of a character in the specified groups. |
void |
setCode(Token token,
Code code,
boolean global)
Setter for active characters or macros in the requested group. |
void |
setCount(java.lang.String name,
Count value,
boolean global)
Setter for a count register in the requested groups. |
void |
setDelcode(UnicodeChar uc,
MathDelimiter code,
boolean global)
Setter for the delcode of a character. |
void |
setDimen(java.lang.String name,
Dimen value,
boolean global)
Setter for a dimen register in the requested groups. |
void |
setFont(java.lang.String name,
Font font,
boolean global)
Setter for the font with a given name. |
void |
setIf(java.lang.String name,
boolean value,
boolean global)
Setter for the value of the booleans in all groups. |
void |
setInFile(java.lang.String name,
InFile file,
boolean global)
Setter for an input file. |
void |
setLccode(UnicodeChar uc,
UnicodeChar lc,
boolean global)
Declare the translation from an upper case character to a lower case character. |
void |
setLocator(Locator locator)
Setter for the locator. |
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 the muskip register in the requested groups. |
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 the output file for a given name. |
void |
setSfcode(UnicodeChar uc,
Count code,
boolean global)
Setter for the space factor code of a character. |
void |
setSkip(java.lang.String name,
Glue value,
boolean global)
Setter for a skip register in all groups. |
void |
setStandardTokenStream(TokenStream standardTokenStream)
Setter for standardTokenStream. |
void |
setStart(Token start)
Setter for the start token. |
void |
setToks(java.lang.String name,
Tokens value,
boolean global)
Setter for a toks register in all groups. |
void |
setType(GroupType type)
Setter for the type. |
void |
setTypesettingContext(TypesettingContext context,
boolean global)
Setter for the typesetting context 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. |
| Method Detail |
|---|
void afterGroup(AfterGroupObserver observer)
observer - the observer to registervoid afterGroup(Token t)
t - the token to addTokens getAfterGroup()
Box getBox(java.lang.String name)
boxregister.
Count registers are named, either with a number or an arbitrary string.
The numbered registers where limited to 256 in
name - the name or number of the count register
null if it is not definedCatcode getCatcode(UnicodeChar c)
getCatcode in interface Tokenizerc - the Unicode character to analyze
Code getCode(CodeToken token)
token - the name of the active character or macro
null if none
is defined yetCount getCount(java.lang.String name)
Note: The number of count registers is not limited to 256 as in
As a default value 0 is returned.
name - the name of the count register
MathDelimiter getDelcode(UnicodeChar uc)
uc - the character to get the delcode for
Dimen getDimen(java.lang.String name)
Note: The number of dimen registers is not limited to 256 as in
As a default value 0 is returned.
name - the name of the dimen register
Font getFont(java.lang.String name)
name - the name of the font
boolean getIf(java.lang.String name)
name - the name of the boolean
InFile getInFile(java.lang.String name)
name - the name of the descriptor to get
UnicodeChar getLccode(UnicodeChar uc)
uc - the upper case character
long getLevel()
Locator getLocator()
MathCode getMathcode(UnicodeChar uc)
uc - the character to get the math code for
Muskip getMuskip(java.lang.String name)
Note: The number of muskip registers is not limited to 256 as in
As a default value 0 is returned.
name - the name of the count register
java.lang.String getNamespace()
getNamespace in interface TokenizerGroup getNext()
OutFile getOutFile(java.lang.String name)
name - the name of the descriptor to get
FixedCount getSfcode(UnicodeChar uc)
uc - the character for which the sfcode is requested
Glue getSkip(java.lang.String name)
Note: The number of skip registers is not limited to 256 as in
As a default value 0 is returned.
name - the name of the count register
TokenStream getStandardTokenStream()
Token getStart()
Tokens getToks(java.lang.String name)
Note: The number of toks registers is not limited to 256 as in
As a default value the empty toks register is returned.
name - the name of the toks register
Tokens getToksOrNull(java.lang.String name)
Note: The number of toks registers is not limited to 256 as in
name - the name of the toks register
null if none is
definedGroupType getType()
TypesettingContext getTypesettingContext()
UnicodeChar getUccode(UnicodeChar lc)
lc - the upper case character
void runAfterGroup()
throws HelpingException
HelpingException - in case of an error
void setBox(java.lang.String name,
Box value,
boolean global)
box
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
name - 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
void setCatcode(UnicodeChar c,
Catcode code,
boolean global)
c - the charactercode - the catcodeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setCode(Token token,
Code code,
boolean global)
token - the name of the active character, i.e. a single letter
stringcode - the new codeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setCount(java.lang.String name,
Count value,
boolean global)
name - the name of the count registervalue - the value of the count registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setDelcode(UnicodeChar uc,
MathDelimiter code,
boolean global)
uc - the character to set the delcode forcode - the new delcodeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setDimen(java.lang.String name,
Dimen value,
boolean global)
name - the name of the count registervalue - the value of the count registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setFont(java.lang.String name,
Font font,
boolean global)
name - the name of the fontfont - the new fontglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setIf(java.lang.String name,
boolean value,
boolean global)
name - the name of the booleanvalue - the truth valueglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setInFile(java.lang.String name,
InFile file,
boolean global)
name - the name of the input filefile - the input file specificationglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setLccode(UnicodeChar uc,
UnicodeChar lc,
boolean global)
uc - upper case characterlc - lower case equivalentglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyvoid setLocator(Locator locator)
locator - the locator
void setMathcode(UnicodeChar uc,
MathCode code,
boolean global)
uc - the character to set the math code forcode - the new math codeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setMuskip(java.lang.String name,
Muskip value,
boolean global)
name - the name of the registervalue - the value of the registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setNamespace(java.lang.String namespace,
boolean global)
namespace - the new name spaceglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setOutFile(java.lang.String name,
OutFile file,
boolean global)
name - the name of the output filefile - the output file specificationglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setSfcode(UnicodeChar uc,
Count code,
boolean global)
uc - the character to set the space factor code forcode - the new space factor codeglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setSkip(java.lang.String name,
Glue value,
boolean global)
name - the name of the count registervalue - the value of the count registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyvoid setStandardTokenStream(TokenStream standardTokenStream)
standardTokenStream - the standardTokenStream to set.void setStart(Token start)
start - the start token
void setToks(java.lang.String name,
Tokens value,
boolean global)
name - the name of the toks registervalue - the value of the toks registerglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected onlyvoid setType(GroupType type)
type - the type of the group
void setTypesettingContext(TypesettingContext context,
boolean global)
context - the new typesetting contextglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
void setUccode(UnicodeChar lc,
UnicodeChar uc,
boolean global)
lc - lower case characteruc - uppercase equivalentglobal - the indicator for the scope; true means all
groups; otherwise the current group is affected only
java.lang.Object get(java.lang.Object extension,
java.lang.Object key)
extension - the reference for the extensionkey - the key of the object
null if none is there
void set(java.lang.Object extension,
java.lang.Object key,
java.lang.Object value,
boolean global)
extension - the reference for the extensionkey - the key of the objectvalue - the value to storeglobal - the indicator that the assignment should be performed
globally
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||