RUN command.
Treat this class as "thread-hostile" since it holds substantial state without
method synchronization; instances should only be used by single thread at a time.
Constructors |
Initializes an instance of this class.
- Parameters:
aHostLine - Mapper report line that hosts this command.
anOptionExpr - option expression parsed from DEF command, defaults to
CLASSIFY_DEFAULT if command did not specify an option.
anInfoVarExpr - variable reference as expression where info about variable-under-test is stored.
aTestVarExpr - variable reference as expression that identifies variable-under-test.
public DefParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ICommandOptionExpr anOptionExpr, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anInfoVarExpr, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aTestVarExpr)
|
Initializes an instance of this class.
- Parameters:
aHostLine - Mapper report line that hosts this command.
anOptionExpr - option expression parsed from DEF command, defaults to
CLASSIFY_DEFAULT if command did not specify an option.
aLabelNumber - a label number (or NEXT_LINE_LABEL ) to jump to if variable-under-test is not defined.
anInfoVarExpr - variable reference as expression where info about variable-under-test is stored.
aTestVarExpr - variable reference as expression that identifies variable-under-test.
public DefParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ICommandOptionExpr anOptionExpr, java.lang.Integer aLabelNumber, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anInfoVarExpr, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aTestVarExpr)
|
Initializes an instance of this class.
- Parameters:
aHostLine - Mapper report line that hosts this command.
anOptionExpr - option expression parsed from DEF command, defaults to
CLASSIFY_DEFAULT if command did not specify an option.
aLabelVariable - variable that contains label to jump to if variable-under-test is not defined.
anInfoVarExpr - variable reference as expression where info about variable-under-test is stored.
aTestVarExpr - variable reference as expression that identifies variable-under-test.
public DefParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ICommandOptionExpr anOptionExpr, com.arsi.mj.maprpt.lexer.ptree.expr.IVariableDerefExpr aLabelVariable, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anInfoVarExpr, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aTestVarExpr)
|
Methods |
public java.util.List declareScalarVariables()
|
Get variable reference as expression where information about variable-under-test is stored.
- Returns:
- single variable dereference that identifies variable where information returned
by
DEF is stored.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr getInfoVariableExpr()
|
Get the literal label number to jump to if variable under test is not defined.
- Returns:
- label number,
NEXT_LINE_LABEL , or NULL if label is variable reference
or no label specified in DEF command.
public final java.lang.Integer getLabelNumber()
|
Get variable that holds the label to jump to if variable under test is not defined.
- Returns:
- variable dereference that contains label, NULL if label is a literal or no
label specified in
DEF command.
public final com.arsi.mj.maprpt.lexer.ptree.expr.IVariableDerefExpr getLabelVariable()
|
Get options applicable to command.
- Returns:
- options applicable to command (empty set if none).
public final java.util.EnumSet getOptions()
|
Get variable reference as expression that identifies variable-under-test.
- Returns:
- typically a single variable dereference that identifies variable to test, but may
be a literal (text) or reserved word.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr getTestVariableExpr()
|
public java.util.List referencedVariables()
|