Parse node that represents a
DEC
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.
anDecrExpr - decrement as concatenation expression from DEC command; if DEC
command omits the decrement, a default is passed to this argument should never be NULL.
someMinuends - minuends as concatenation expressions parsed from DEC command.
public DecParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anDecrExpr, java.util.List someMinuends)
|
Methods |
public java.util.List declareScalarVariables()
|
Get decrement (to be subtracted from minuends) as concatenation expression.
- Returns:
- concatenation expression that can be expected to contain a single variable reference
or literal to subtract from minuends.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr getDecrement()
|
Get minuends (variables to decrement) as concatenation expressions.
- Returns:
- concatenation expressions that can be expected to contain a single variable
references of different flavors, including array subscript, string bounds and
reformatting. While string bounds and reformatting are ignored at run-time by
Mapper, they are valid syntactically.
public final java.util.List getMinuends()
|
public java.util.List referencedVariables()
|