public interface CsdglInstruction
Modifier and Type | Field and Description |
---|---|
static int |
BEGIN_STRUCTURE
Indicates the start of a many types of structure.
|
static int |
BREAK_MAGIC |
static int |
CHANGE_FLAGS
Indicates a change in the stem flags.
|
static int |
CHANGE_STRUCTURE
Indicates a change in a running structure that may draw a prefix and
change the stem.
|
static int |
CONTEXT_HINT
Marks the place where a context hint should be displayed.
|
static int |
DO_NOTHING |
static int |
END_BOX
Indicates the end of a box, but only when the structure has no body.
|
static int |
END_DO |
static int |
END_IGNORE_INDENT
Indicates that indent tracking should be turned on.
|
static int |
END_INDENT
Ends an intra-statement align indent.
|
static int |
END_MAGIC |
static int |
END_OVERRIDE_PRESERVE_WS
Marks the end of a block in which indentation preservation should be
ignored.
|
static int |
END_PRESERVE_WS
Marks the end of a block in which indentation should be preserved.
|
static int |
END_STEM
Indicates that the innermost stem, if any, should be terminated.
|
static int |
END_STRUCTURE
Indicates the end of any structure, except for a box without a body, a
do loop, or simple indentation.
|
static int |
ENTER |
static int |
ENTER_CASE
Switch statement entry.
|
static int |
EXIT_ENTER_FROM
Indicates a point of exit and entry.
|
static int |
EXIT_FROM
Indicates exit from a structure.
|
static int |
EXIT_TO
Indicates exit to a structure.
|
static int |
FORCED_NEWLINE |
static int |
IGNORE_INDENT
Indicates that indent tracking should be turned off.
|
static int |
LEFT_ALIGN |
static int |
MACRO |
static int |
MAGIC_BUMP
Marks the end delimiter in a single case block, which may be back too
far and if so needs to be indented one level.
|
static int |
NEWLINE |
static int |
OPT_SPACE
Indicates a position that should be indented an extra level if "indent
braces" is on.
|
static int |
OVERRIDE_PRESERVE_WS
Marks the beginning of a block in which indentation preservation should
be ignored.
|
static int |
PRESERVE_WS
Marks the beginning of a block in which indentation should be
preserved.
|
static int |
SET_INDENT
Starts an intra-statement align indent.
|
static int |
START_ADJ_BOX
Indicates the start of a box that can be arbitrarily indented.
|
static int |
START_BODY
Indicates the start of a body within a box.
|
static int |
START_BOX
Indicates the start of a box.
|
static int |
STEM_END_PENDING
Indicates the last branch from a stem.
|
Modifier and Type | Method and Description |
---|---|
byte |
getArg(int argNum)
Retrieves an instruction argument.
|
byte |
getOpcode()
Retrieves the opcode of the instruction.
|
static final int START_BOX
static final int END_BOX
static final int START_BODY
static final int END_STEM
static final int STEM_END_PENDING
static final int END_STRUCTURE
static final int END_DO
static final int CHANGE_STRUCTURE
static final int BEGIN_STRUCTURE
static final int EXIT_FROM
Exit / enter arguments: depth, stack bit, force_newline stack bit is the bit index for the stack, or 128 for the last newline, or 64 for the current position
depth is the number of frames back from the current position of the stack
force_newline will force a new line if zero
static final int EXIT_TO
Exit / enter arguments: depth, stack bit, force_newline stack bit is the bit index for the stack, or 128 for the last newline, or 64 for the current position
depth is the number of frames back from the current position of the stack.
force_newline will force a new line if zero.
static final int ENTER
static final int ENTER_CASE
static final int SET_INDENT
static final int END_INDENT
static final int OPT_SPACE
static final int DO_NOTHING
static final int NEWLINE
static final int MACRO
static final int FORCED_NEWLINE
static final int END_MAGIC
static final int BREAK_MAGIC
static final int CHANGE_FLAGS
static final int LEFT_ALIGN
static final int EXIT_ENTER_FROM
static final int PRESERVE_WS
static final int END_PRESERVE_WS
static final int OVERRIDE_PRESERVE_WS
static final int END_OVERRIDE_PRESERVE_WS
static final int IGNORE_INDENT
static final int END_IGNORE_INDENT
static final int START_ADJ_BOX
static final int MAGIC_BUMP
static final int CONTEXT_HINT
byte getArg(int argNum)
argNum
- zero-based index of argument. Instructions have at most
three arguments.byte getOpcode()