Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.

 

Package: com.arsi.mj.maprpt.lexer.ptree.cmd.inc  previous next contents

Package com.arsi.mj.maprpt.lexer.ptree.cmd.inc contains the following classes and interfaces.
Classes and Interfaces
IncCommandParser Parses a INC RUN command.
IncParseNode Parse node that represents a INC RUN command.

Class: IncCommandParser   next package

Parses a INC RUN command.
Treat this class as "thread-hostile"; instances should be created, used and discarded by single thread at a time.

public class com.arsi.mj.maprpt.lexer.ptree.cmd.inc.IncCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public IncCommandParser()
Methods
public com.arsi.mj.maprpt.lexer.ptree.cmd.CommandParseResult parseCommand(com.arsi.mj.maprpt.lexer.tokens.IMaprptToken anInitialToken, com.arsi.mj.maprpt.lexer.MaprptLexer aLexer, org.springframework.context.ApplicationContext anAppCtx)
    throws com.arsi.mj.MJTranslateException

Class: IncParseNode   previous package

Parse node that represents a INC 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.

public class com.arsi.mj.maprpt.lexer.ptree.cmd.inc.IncParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.CommandParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.vardecl.ISupportsScalarDeclaration, com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Constructors
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
anIncrExpr - increment as concatenation expression from INC command; if INC command omits the increment, a default is passed to this argument should never be NULL.
someSummands - summands as concatenation expressions parsed from INC command.
public IncParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anIncrExpr, java.util.List someSummands)
Methods
public java.util.List declareScalarVariables()
Get increment (to be added to summands) as concatenation expression.
Returns:
concatenation expression that can be expected to contain a single variable reference or literal to add to summands.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr getIncrement()
Get summands (variables to increment) as concatenation expressions.
Returns:
concatenation expressions that can be expected to contain (i) a single variable references of different flavors, including array subscript, string bounds and reformatting (ii) a two-part variable declaration (simple variable reference and type/size as text, such as "i6", "f5" or "s20") or (iii) a three-part, floating point variable declaration (simple variable reference and type/size as text, such as "f9" followed by ".2"). While string bounds and reformatting are ignored at run-time by Mapper, they are valid syntactically.
public final java.util.List getSummands()
public java.util.List referencedVariables()