|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Flags
This interface describes a set of named flags.
The flags correspond largely to the prefix macros like \global The following flags are known:
| Flag | Macro | Description |
|---|---|---|
| global | \global | The global flag controls the scope of assignments like \defs. |
| immediate | \immediate | The immediate flag controls the delay of writing operations. This is used in \write and friends. |
| long | \long | The long flag controls the matching of macro parameters. |
| outer | \outer | The outer flag controls that the macro can not be used at places where tokens are absorbed at high speed. |
| protected | \protected | The protected flag controls the expansion of the macro when the argument for \edef and friends is expanded. |
| Field Summary | |
|---|---|
static Flags |
NONE
The constant NONE contains an instance where no flags are set. |
| Method Summary | |
|---|---|
void |
clear()
This method clears all flags. |
boolean |
clearGlobal()
Setter for the global flag. |
boolean |
clearImmediate()
Setter for the immediate flag. |
boolean |
clearLong()
Setter for the long flag. |
boolean |
clearOuter()
Setter for the outer flag. |
boolean |
clearProtected()
Setter for the protected flag. |
Flags |
copy()
Clone an instance. |
java.lang.String[] |
get()
Getter for the text representations of the flags currently set. |
boolean |
isDirty()
Test if all flags are cleared. |
boolean |
isGlobal()
Getter for the global flag. |
boolean |
isImmediate()
Getter for the immediate flag. |
boolean |
isLong()
Getter for the long flag. |
boolean |
isOuter()
Getter for the outer flag. |
boolean |
isProtected()
Getter for the protected flag. |
void |
set(Flags flags)
Copy the flag settings from a given instance int this instance. |
void |
setGlobal()
Setter for the global flag. |
void |
setGlobal(boolean value)
Setter for the global flag. |
void |
setImmediate()
Setter for the immediate flag. |
void |
setLong()
Setter for the long flag. |
void |
setOuter()
Setter for the outer flag. |
void |
setProtected()
Setter for the protected flag. |
java.lang.String |
toText()
Determine a printable representation of the flags set. |
| Field Detail |
|---|
static final Flags NONE
| Method Detail |
|---|
void clear()
boolean clearGlobal()
false.
isGlobal(),
setGlobal(),
setGlobal(boolean)boolean clearImmediate()
false.
isImmediate(),
setImmediate()boolean clearLong()
false.
isLong(),
setLong()boolean clearOuter()
false.
isOuter(),
setOuter()boolean clearProtected()
false.
isProtected(),
setProtected()Flags copy()
java.lang.String[] get()
boolean isDirty()
true iff not all flags are clearedboolean isGlobal()
clearGlobal(),
setGlobal(),
setGlobal(boolean)boolean isImmediate()
clearImmediate(),
setImmediate()boolean isLong()
clearLong(),
setLong()boolean isOuter()
clearOuter(),
setOuter()boolean isProtected()
clearProtected(),
setProtected()void set(Flags flags)
flags - the flags to copyvoid setGlobal()
true.
clearGlobal(),
isGlobal(),
setGlobal(boolean)void setGlobal(boolean value)
true.
value - the new value for the global flagclearGlobal(),
isGlobal(),
setGlobal()void setImmediate()
true.
clearImmediate(),
isImmediate()void setLong()
true.
clearLong(),
isLong()void setOuter()
true.
clearOuter(),
isOuter()void setProtected()
true.
clearProtected(),
isProtected()java.lang.String toText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||