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

Package com.arsi.mj.maprpt.lexer.ptree.cmd.def contains the following classes and interfaces.
Classes and Interfaces
DefCommandParser Parses a DEF RUN command.
DefParseNode Parse node that represents a DEF RUN command.

Class: DefCommandParser   next package

Parses a DEF 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.def.DefCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public DefCommandParser()
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: DefParseNode   previous package

Parse node that represents a DEF 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.def.DefParseNode
  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 Option
Enumerated options for DEF command, associated with option letter. This class must implement that static method fromLetter for use with class CmdOptionConcatExpr.
public static final class com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option
  extends java.lang.Enum
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option CABINET_NUMBER
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option CLASSIFY_DEFAULT
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option CLASSIFY_UNSIGNED
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option COUNT_NON_SPACE
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option COUNT_PACKED
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option COUNT_TABS
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option DIMENSION
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option DRAWER_LETTER
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option DRAWER_NUMBER
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option ENVIRONMENT_VARNAME
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option GLOBAL_VARNAME
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option KANJI
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option KANJI_OR_KATAKANA
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option RUN_VARNAME
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option SIZE
public static final com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option VARIABLE_TYPE
public static com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option fromLetter(char aLetter)
public char getLetter()
public static com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option valueOf(java.lang.String name)
public static com.arsi.mj.maprpt.lexer.ptree.cmd.def.DefParseNode.Option values()
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.
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()