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.dec  previous next contents

Package com.arsi.mj.maprpt.lexer.ptree.cmd.dec contains the following classes and interfaces.
Classes and Interfaces
DecCommandParser Parses a DEC RUN command.
DecParseNode Parse node that represents a DEC RUN command.

Class: DecCommandParser   next package

Parses a DEC 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.dec.DecCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public DecCommandParser()
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: DecParseNode   previous package

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.

public class com.arsi.mj.maprpt.lexer.ptree.cmd.dec.DecParseNode
  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.
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()