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

Package com.arsi.mj.maprpt.lexer.ptree.cmd.chg contains the following classes and interfaces.
Classes and Interfaces
ChgChrParseNode Parse node that represents a CHG RUN command having syntax that sets a variable to the result of the CHR$ reserved word, e.g., @chg v15 chr$ 12.
ChgCommandParser Parses an CHG RUN command.
ChgInputParseNode Parse node representing a CHG RUN command having syntax that collects input into one or more variables, e.g., @chg $input v1,v2,v3.
ChgParseNode Base class for parse nodes that represents flavors of CHG RUN command.
ChgVariableParseNode Parse node that represents a CHG RUN command having syntax that sets a variable to the result of a simple equation, e.g., @chg v5 v10 + v20.

Class: ChgChrParseNode   next package

Parse node that represents a CHG RUN command having syntax that sets a variable to the result of the CHR$ reserved word, e.g., @chg v15 chr$ 12.
Treat this class as "thread-hostile" since it may hold 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.chg.ChgChrParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.chg.ChgParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.vardecl.ISupportsScalarDeclaration, com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Fields
Octal number of ASCII character as concatenation expression (e.g., text expression like "12").
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr asciiOrdinalAsConcatExpr
Variable reference as concatenation expression that identifies variable to set using CHR$.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr variableAsConcatExpr
Constructors
Public ctor for initializing an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aVarAsConcatExpr - variable reference as concatenation expression that identifies variable to set using CHR$.
anAsciiAsConcatExpr - octal number of ASCII character as concatenation expression (e.g., text expression like "12").
public ChgChrParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aVarAsConcatExpr, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr anAsciiAsConcatExpr)
Methods
public java.util.List declareScalarVariables()
public java.util.List referencedVariables()

Class: ChgCommandParser   previous next package

Parses an CHG 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.chg.ChgCommandParser
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.RunCommandParserBase
  implements com.arsi.mj.maprpt.lexer.ptree.cmd.IRunCommandParser
Constructors
public ChgCommandParser()
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 find mathematical operators that indicate the CHG command contains an equation.
Parameters:
currentToken - token last parsed from lexer, qualifies whether or not mathematical operators are likely to be found.
aLexer - a lexer for reading ahead into raw input.
Returns:
true if mathematical operator(s) found, false if not.
public boolean readAheadForOperators(com.arsi.mj.maprpt.lexer.tokens.IMaprptToken currentToken, com.arsi.mj.maprpt.lexer.MaprptLexer aLexer)

Class: ChgInputParseNode   previous next package

Parse node representing a CHG RUN command having syntax that collects input into one or more variables, e.g., @chg $input v1,v2,v3.
Treat this class as "thread-hostile" since it may hold 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.chg.ChgInputParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.chg.ChgParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.vardecl.ISupportsScalarDeclaration, com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Constructors
Public ctor for initializing an instance of this class.
Parameters:
aHostLine - Mapper report line that hosts this command.
aResvWord - reserved word that identifies type of input to accept.
someExtractExprs - variable(s) as concatenation expression(s) where extracted input is stored.
public ChgInputParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.rsvd.IReservedWord aResvWord, java.util.List someExtractExprs)
Methods
public java.util.List declareScalarVariables()
public java.util.List referencedVariables()

Class: ChgParseNode   previous next package

Base class for parse nodes that represents flavors of CHG 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 abstract class com.arsi.mj.maprpt.lexer.ptree.cmd.chg.ChgParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.CommandParseNode

Class: ChgVariableParseNode   previous package

Parse node that represents a CHG RUN command having syntax that sets a variable to the result of a simple equation, e.g., @chg v5 v10 + v20.
Treat this class as "thread-hostile" since it may hold 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.chg.ChgVariableParseNode
  extends com.arsi.mj.maprpt.lexer.ptree.cmd.chg.ChgParseNode
  implements com.arsi.mj.maprpt.lexer.symtab.vardecl.ISupportsScalarDeclaration, com.arsi.mj.maprpt.lexer.symtab.ISupportsVariableReference
Fields
New value of variable as equation, NULL if value is concatenation expression.
public final com.arsi.mj.maprpt.lexer.ptree.cmd.equation.nodes.IEquationNode equation
New value of variable as concatenation expression, NULL if value is equation.
public final java.util.List valueAsConcatExprs
Variable reference as concatenation expression that identifies variable to change.
public final com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr variableAsConcatExpr
Constructors
Public ctor for initializing an instance of this class where there is no equation or other value associated with variable to change.
Parameters:
aHostLine - Mapper report line that hosts this command.
aVarAsConcatExpr - variable reference as concatenation expression that identifies variable to change.
public ChgVariableParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aVarAsConcatExpr)
Public ctor for initializing an instance of this class where value of variable is the result of an equation.
Parameters:
aHostLine - Mapper report line that hosts this command.
aVarAsConcatExpr - variable reference as concatenation expression that identifies variable to change.
anEquation - new value of variable as equation, NULL if value is concatenation expression.
public ChgVariableParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aVarAsConcatExpr, com.arsi.mj.maprpt.lexer.ptree.cmd.equation.nodes.IEquationNode anEquation)
Public ctor for initializing an instance of this class where value of variable is the result of a concatenation expression.
Parameters:
aHostLine - Mapper report line that hosts this command.
aVarAsConcatExpr - variable reference as concatenation expression that identifies variable to change.
aValueAsConcatExprs - new value of variable as concatenation expression(s) (e.g., text, variable reference, etc).
public ChgVariableParseNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aVarAsConcatExpr, java.util.List aValueAsConcatExprs)
Methods
public java.util.List declareScalarVariables()
public java.util.List referencedVariables()