Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.

 

Package: com.arsi.mj.maprpt.lexer.symtab.run  previous next contents

Package com.arsi.mj.maprpt.lexer.symtab.run contains the following classes and interfaces.
Classes and Interfaces
RunSymbolTable Symbol table for Mapper RUN variables, i.e., normal Mapper variables such as <myVar>s20 and V15f9.2.
RunSymbolTableArray Symbol table "array" variable (as opposed to scalar) for Mapper RUN arrays.
RunSymbolTableScalar Symbol table "scalar" variable (as opposed to array) for Mapper RUN variables.
RunSymbolTableVariableBase Abstract base class for symbol table entries for Mapper RUN variables.

Class: RunSymbolTable   next package

Symbol table for Mapper RUN variables, i.e., normal Mapper variables such as <myVar>s20 and V15f9.2.
public class com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTable
  extends java.lang.Object
  implements com.arsi.mj.maprpt.lexer.symtab.ISymbolTable
Inner Class ReferencedVariable
Nested class that stores information about variable reference, allowing processing of variable reference to be deferred.
public static class com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTable.ReferencedVariable
  extends java.lang.Object
Constructors
public RunSymbolTable()
Methods
public void declareVariable(com.arsi.mj.maprpt.lexer.symtab.ISymbolTableVariable aVariable)
Dump textual representation of this symbol table.
Parameters:
anOut - print stream for writing textual representation.
anIdentLevel - number of spaces to indent the lines in textual representation.
public void dump(java.io.PrintStream anOut, int anIdentLevel)
Get environment scalar and array variables (e.g., <$mxLnOrd>s10), invoke this method after symbol table has been built (including resolveReferencedVariables).
public java.util.Collection getEnvironmentVariables()
Get global scalar and array variables (e.g., <*totamt>f9.2), invoke this method after symbol table has been built (including resolveReferencedVariables).
public java.util.Collection getGlobalVariables()
Get local scalar and array variables (e.g., <myVar>s8, V33i4), invoke this method after symbol table has been built (including resolveReferencedVariables).
public java.util.Collection getLocalVariables()
public void referenceVariable(com.arsi.mj.maprpt.lexer.symtab.VariableReferenceIdentity aVarIdent, com.arsi.mj.maprpt.lexer.ptree.IParseTreeNode aPtreeNode)
Resolve variable references accumulated in this symbol table after registering all variable declarations, re-definitions and references.
Returns:
list of unresolved variable references; these variables are not known by this symbol table and appear to have not been declared.
public java.util.List resolveReferencedVariables()
Cast votes for type of variable represented by this symbol table entry after discovery of variable declarations and references.
Parameters:
aVarIdent - identifies the referenced variable.
aVote - variable type vote.
public boolean voteForVariableType(com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase.VarTypeVoteIdentity aVarIdent, com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase aVote)

Class: RunSymbolTableArray   previous next package

Symbol table "array" variable (as opposed to scalar) for Mapper RUN arrays.
public class com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTableArray
  extends com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTableVariableBase
Constructors
Public ctor for initializing an instance of this class.
Parameters:
aVarIdent - identity of variable: name or number and scope.
public RunSymbolTableArray(com.arsi.mj.maprpt.lexer.symtab.VariableIdentity aVarIdent)
Methods
Get array declaration information where dimension, precision and/or scale are conveyed, may be defined statically and/or dynamically (and thus dependent on the value(s) of other variables or a report column).
Returns:
array declaration information that conveys precision and/or scale.
public java.util.List precisionAndScaleDecls()

Class: RunSymbolTableScalar   previous next package

Symbol table "scalar" variable (as opposed to array) for Mapper RUN variables.
public class com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTableScalar
  extends com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTableVariableBase
Constructors
Public ctor for initializing an instance of this class.
Parameters:
aVarIdent - identity of variable: name or number and scope.
public RunSymbolTableScalar(com.arsi.mj.maprpt.lexer.symtab.VariableIdentity aVarIdent)
Methods
Get variable declaration information where precision and/or scale is conveyed, may be defined statically and/or dynamically (and thus dependent on the value(s) of other variables or a report column).
Returns:
variable declaration information that conveys precision and/or scale.
public java.util.List precisionAndScaleDecls()

Class: RunSymbolTableVariableBase   previous package

Abstract base class for symbol table entries for Mapper RUN variables.
public abstract class com.arsi.mj.maprpt.lexer.symtab.run.RunSymbolTableVariableBase
  extends com.arsi.mj.maprpt.lexer.symtab.SymbolTableVariableBase
Constructors
Public ctor for initializing an instance of this class.
Parameters:
aVarIdent - identity of variable: name or number and scope.
anArrayFlag - true if variable is an array, false if scalar.
public RunSymbolTableVariableBase(com.arsi.mj.maprpt.lexer.symtab.VariableIdentity aVarIdent, boolean anArrayFlag)
Methods
Get votes for type of variable represented by this symbol table entry.
Returns:
votes for type of variable.
public java.util.List getVariableTypeVotes()
Convert symbol table variable to something that resembles Mapper source string.
Returns:
symbol table variable as something like a Mapper source string.
public java.lang.String toMapperString()
Cast vote for type of variable represented by this symbol table entry.
Parameters:
aVote - variable type vote.
public void voteForVariableType(com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase aVote)