Package: com.arsi.mj.maprpt.lexer.ptree.cmd.ctrlflow
previous next contents
Package com.arsi.mj.maprpt.lexer.ptree.cmd.ctrlflow
contains the following classes and interfaces.
Classes and Interfaces |
IJumptoCmdInfo |
Informs about branches in a Mapper command that transfer control to another
label or line in the same RUN, or another report in the same cabinet and
drawer, based on literal values or run-time expressions. |
ILongjmpCmdInfo |
Informs about branches in a Mapper command that transfer control to
a label or line in a different RUN, or to a report in a different cabinet and
drawer, based on literal values or run-time expressions. |
IMapperSubexprCmdInfo |
Informs that Mapper command contains Mapper sub-expressions or sub-commands
which must be processed as an embedded control flow graph, without handling
jumps (all jumps are called out and handled via IJumptoCmdInfo
and ILongjmpCmdInfo ). |
Interface: IJumptoCmdInfo
next
package
Informs about branches in a Mapper command that transfer control to another
label or line in the same RUN, or another report in the same cabinet and
drawer, based on literal values or run-time expressions.
Treat this class as "thread-safe", since it is immutable once created.
public interface com.arsi.mj.maprpt.lexer.ptree.cmd.ctrlflow.IJumptoCmdInfo
Methods |
Allow fall-thru to next command as a default path?
- Returns:
- true to allow fall-thru to next command, false if command cannot
fall thru (all paths jump to another line, label or report).
public boolean allowFallthru()
|
Get expression that yields label or line number in report that hosts this
command, and/or report number in same cabinet and drawer of host report, where
this command transfers control (if any).
- Parameters:
anId - ID that uniquely identifies each jump-to expression returned by this
call (increment to next ID value if more than one expression is returned).
- Returns:
- expressions that yield label, line and/or report number(s), or empty list if none;
the returned expressions should not include any text part(s) that identify the
jump destination (e.g., "LIN", "RPX") since the jump destination is enumerated
with each jump-info object returned.
public java.util.List jumptoExpressions(int anId)
|
Get literal label or line number in report that hosts this command, and/or
report number in same cabinet and drawer of host report, where this command
transfers control (if any).
- Parameters:
anId - ID that uniquely identifies each jump-to literal returned by this
call (increment to next ID value if more than one literal is returned).
- Returns:
- literal label, line and/or report number(s), or empty list if none.
public java.util.List jumptoLiterals(int anId)
|
Informs about branches in a Mapper command that transfer control to
a label or line in a different RUN, or to a report in a different cabinet and
drawer, based on literal values or run-time expressions.
Treat this class as "thread-safe", since it is immutable once created.
public interface com.arsi.mj.maprpt.lexer.ptree.cmd.ctrlflow.ILongjmpCmdInfo
Methods |
Allow fall-thru to next command as a default path?
- Returns:
- true to allow fall-thru to next command, false if command cannot
fall thru (all paths jump to another line, label or report).
public boolean allowFallthru()
|
Get expression that yields label or line number in report other than host
report, and/or report number in cabinet and drawer different from host report,
where this command transfers control (if any).
- Parameters:
anId - ID that uniquely identifies each long-jump expression returned by this
call (increment to next ID value if more than one expression is returned).
- Returns:
- expressions that yield label, line and/or report number(s), qualified by
CDR or result number, or empty list if none. The returned expressions should
not include any text part(s) that identify the jump destination (e.g., "LIN",
"RPX") since the jump destination is enumerated with each jump-info object returned.
public java.util.List jumptoExpressions(int anId)
|
Get literal label or line number in report other than host report, and/or
report number in cabinet and drawer different from host report, where
this command transfers control (if any).
- Parameters:
anId - ID that uniquely identifies each long-jump literal returned by this
call (increment to next ID value if more than one literal is returned).
- Returns:
- literal label, line and/or report number(s) qualified by CDR or result
number, or empty list if none.
public java.util.List longjmpLiterals(int anId)
|
Interface: IMapperSubexprCmdInfo
previous
package
Informs that Mapper command contains Mapper sub-expressions or sub-commands
which must be processed as an embedded control flow graph, without handling
jumps (all jumps are called out and handled via
IJumptoCmdInfo
and
ILongjmpCmdInfo
).
Treat this class as "thread-safe", since it is immutable once created.
public interface com.arsi.mj.maprpt.lexer.ptree.cmd.ctrlflow.IMapperSubexprCmdInfo
Methods |
Get all Mapper sub-expressions or sub-commands embedded in this command so
the sub-expressions may be processed into control flow graph(s).
- Parameters:
anId - ID that uniquely identifies each sub-expression (implementation should increment
as necessary to assign a unique ID to each returned sub-expression).
- Returns:
- sub-expressions composed of Mapper commands, text, etc (empty list if none).
public java.util.List subExpressions(int anId)
|