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

Package com.arsi.mj.maprpt.lexer.ptree.cmd.rsr contains the following classes and interfaces.
Classes and Interfaces
RsrCommandParser Parses a RSR RUN command.
RsrParseNode Parse node that represents a RSR RUN command.

Class: RsrCommandParser   next package

Parses a RSR 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.rsr.RsrCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public RsrCommandParser()
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: RsrParseNode   previous package

Parse node that represents a RSR 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.rsr.RsrParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.CommandParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Fields
Expression that yields label or line offset, NULL if literalCallback is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr labelConcatExpr
Stores literal label or line number offset, NULL if concatExpr is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.cmd.litcbk.JumpExprCallback labelLiteralCallback
Constructors
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
anExternalCdr - report containing external subroutine as a cabinet-drawer-report specification.
aLiteralCallback - start-of-subroutine-label as literal label or line number offset, stored by callback (NULL if aRuntimeExpr is not NULL).
aRuntimeExpr - start-of-subroutine-label as concatenation expression that can only be evaluated at runtime (NULL if aLiteralCallback is not NULL).
public RsrParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr anExternalCdr, com.arsi.mj.maprpt.lexer.ptree.cmd.litcbk.JumpExprCallback aLiteralCallback, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aRuntimeExpr)
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aLiteralCallback - start-of-subroutine-label as literal label or line number offset, stored by callback (NULL if aRuntimeExpr is not NULL).
aRuntimeExpr - start-of-subroutine-label as concatenation expression that can only be evaluated at runtime (NULL if aLiteralCallback is not NULL).
public RsrParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.cmd.litcbk.JumpExprCallback aLiteralCallback, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aRuntimeExpr)
Methods
Get report (or possibly result) containing external subroutine.
Returns:
report or result containing external subroutine as cabinet-drawer-report specification.
public final com.arsi.mj.maprpt.lexer.ptree.symbol.Cdr getExternalSubrtnReportOrResult()
Get start-of-subroutine-label as literal label or line number offset, stored by, and as, jump expression callback.
Returns:
literal label or line number offset as jump expression callback, NULL if getJumpRuntimeExpr is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.cmd.litcbk.JumpExprCallback getSubrtnJumpLiteral()
Get start-of-subroutine-label as runtime expression that yields label or line offset
Returns:
expression that yields label or line offset, NULL if getJumpLiteral is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr getSubrtnJumpRuntimeExpr()
public java.util.List referencedVariables()