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

Package com.arsi.mj.maprpt.lexer.ptree.cmd.dvs contains the following classes and interfaces.
Classes and Interfaces
DvsCommandParser Parses a DVS RUN command.
DvsParseNode Parse node that represents a DVS RUN command.

Class: DvsCommandParser   next package

Parses a DVS 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.dvs.DvsCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public DvsCommandParser()
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
Read ahead into raw input to check if expected CDR (cabinet, drawer and report) specification appears to be result number.
Parameters:
currentToken - token last parsed from lexer, qualifies whether result number is likely to be found.
aLexer - a lexer for reading ahead into raw input.
Returns:
true if input appears to be result number, false if not.
public boolean resemblesResultNumber(com.arsi.mj.maprpt.lexer.tokens.IMaprptToken currentToken, com.arsi.mj.maprpt.lexer.MaprptLexer aLexer)

Class: DvsParseNode   previous package

Parse node that represents a DVS 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.dvs.DvsParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.CommandParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.vardecl.ISupportsScalarDeclaration, com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Inner Class ColumnSpecification
Column specification of either column name or column position and length.
public static class com.arsi.mj.maprpt.lexer.ptree.cmd.dvs.DvsParseNode.ColumnSpecification
  extends java.lang.Object
Position and length of column, NULL if columnNameExpr is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.symbol.StringBounds columnBounds

Expression that yields column name,, NULL if columnBounds is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr columnNameExpr

Fields
Constant that represents the LIN1 (next line) label.
public static final int NEXT_LINE_LABEL = 2147483647
Constructors
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aTargetReport - report or result where column names (or positions) are to be found.
aLabelNumber - a label number (or NEXT_LINE_LABEL) to jump to if columns not found.
someColumns - columns who sizes are to be used to define variable sizes.
someDecls - variables declarations parsed from LDV command.
public DvsParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr aTargetReport, java.lang.Integer aLabelNumber, java.util.List someColumns, java.util.List someDecls)
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aTargetReport - report or result where column names (or positions) are to be found.
aLabelVariable - variable that contains label to jump to if columns not found.
someColumns - columns who sizes are to be used to define variable sizes.
someDecls - variables declarations parsed from LDV command.
public DvsParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr aTargetReport, com.arsi.mj.maprpt.lexer.ptree.expr.IVariableDerefExpr aLabelVariable, java.util.List someColumns, java.util.List someDecls)
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aTargetReport - report or result where column names (or positions) are to be found.
someColumns - columns who sizes are to be used to define variable sizes.
someDecls - variables declarations parsed from LDV command.
public DvsParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr aTargetReport, java.util.List someColumns, java.util.List someDecls)
Methods
public java.util.List declareScalarVariables()
Get names or positions of columns who sizes are to be used to define variable sizes.
Returns:
column names or positions.
public final java.util.List getColumns()
Get the literal label number to jump to if column names are not found.
Returns:
label number, NEXT_LINE_LABEL, or NULL if label is variable reference or no label specified in DVS command.
public final java.lang.Integer getLabelNumber()
Get variable that holds the label to jump to if column names are not found.
Returns:
variable dereference that contains label, NULL if label is a literal or no label specified in DVS command.
public final com.arsi.mj.maprpt.lexer.ptree.expr.IVariableDerefExpr getLabelVariable()
Get report or result that is target of DVS command.
Returns:
target report or result as cabinet-drawer-report specification.
public final com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr getTargetReportOrResult()
Get variables declared by this DVS command whose size may be set based on the size of the named columns (or length of specified column positions).
Returns:
declared variables.
public final java.util.List getVariables()
public java.util.List referencedVariables()