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

Package com.arsi.mj.maprpt.lexer.ptree.cmd.Return contains the following classes and interfaces.
Classes and Interfaces
ReturnCommandParser Parses a RETURN RUN command.
ReturnParseNode Parse node that represents a RETURN RUN command.

Class: ReturnCommandParser   next package

Parses a RETURN 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.Return.ReturnCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public ReturnCommandParser()
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: ReturnParseNode   previous package

Parse node that represents a RETURN 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.Return.ReturnParseNode
  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 concatExpr
Stores literal label or line number offset, NULL if concatExpr is not NULL.
public final com.arsi.mj.maprpt.lexer.ptree.cmd.litcbk.JumpExprCallback literalCallback
Constructors
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
public ReturnParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine)
Initializes an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aLiteralCallback - return-to-label as literal label or line number offset, stored by callback (NULL if aRuntimeExpr is not NULL).
aRuntimeExpr - return-to-label as concatenation expression that can only be evaluated at runtime (NULL if aLiteralCallback is not NULL).
public ReturnParseNode(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 return-to-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 getJumpLiteral()
Get return-to-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 getJumpRuntimeExpr()
public java.util.List referencedVariables()