Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.
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. |
<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
|
Constructors |
public RunSymbolTable()
|
Methods |
public void declareVariable(com.arsi.mj.maprpt.lexer.symtab.ISymbolTableVariable aVariable)
|
Dump textual representation of this symbol table.
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.
public java.util.List resolveReferencedVariables()
|
Cast votes for type of variable represented by this symbol table entry after
discovery of variable declarations and references.
public boolean voteForVariableType(com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase.VarTypeVoteIdentity aVarIdent, com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase aVote)
|
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.
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).
public java.util.List precisionAndScaleDecls()
|
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.
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).
public java.util.List precisionAndScaleDecls()
|
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.
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.
public java.util.List getVariableTypeVotes()
|
Convert symbol table variable to something that resembles Mapper source string.
public java.lang.String toMapperString()
|
Cast vote for type of variable represented by this symbol table entry.
public void voteForVariableType(com.arsi.mj.maprpt.lexer.symtab.vartype.VarTypeVoteBase aVote)
|