Package: com.arsi.mj.maprpt.lexer.ptree.expr
previous next contents
Package com.arsi.mj.maprpt.lexer.ptree.expr
contains the following classes and interfaces.
Classes and Interfaces |
ArraySubscriptExpr |
Array subscript expression that combines an array subscript with a variable
that is dereferenced by the subscript. |
CharCmdOptionConcatExpr |
A concatenation expression that wraps the various ways a single-character command
option may be specified. |
ConcatExpr |
Expression that is simply the concatenation of other expressions, and is used
to print data in Mapper and to initialize variables. |
DeclaredVariableExpr |
Variable declaring expression that combines a variable type and size with a
variable reference, e.g., <myVar>s20 or V55f6.2 .
|
ICommandOptionExpr |
Defines an expression that represents the various ways a command option may
be specified in a Mapper RUN command. |
IMaprptExpr |
Denotes a parsed Mapper expression of some kind. |
IVariableDerefExplicitExpr |
Marker interface that denotes an expression that directly and explicitly
dereferences a variable, i.e., provides a direct path to access the value of
a specific variable. |
IVariableDerefExpr |
Marker interface that denotes an expression that dereferences a variable, i.e.,
provides a path to access the value of a variable. |
IVariableDerefImpliedExpr |
Marker interface that denotes an expression that indirectly or implicitly
dereferences a variable, i.e., provides a path that ultimately accesses
the value of a variable. |
ReservedWordExpr |
Expression that represents a reserved word. |
ReservedWordRefmtExpr |
Formatting expression that combines formatting directive with a reserved word
or string bounds that is dereferenced by the directive. |
ReservedWordStrboundsExpr |
Substring expression that combines a string bounds with a variable or array
that is dereferenced by the bounds. |
StrCmdOptionConcatExpr |
A concatenation expression that wraps the various ways a string-valued command
option may be specified. |
TextExpr |
Expression that represents text. |
VariableReferenceExpr |
Expression that represents a variable. |
VariableRefmtExpr |
Formatting expression that combines formatting directive with a a string bounds,
variable or array member that is dereferenced by the directive. |
VariableStrboundsExpr |
Substring expression that combines a string bounds with a variable or array
that is dereferenced by the bounds. |
Class: ArraySubscriptExpr
next
package
Array subscript expression that combines an array subscript with a variable
that is dereferenced by the subscript.
Treat this class as "thread-safe", since it is immutable once created.
A concatenation expression that wraps the various ways a single-character command
option may be specified. For example, while a command option is usually an alphabetic
literal such as
LDV,U
, the option might be stored as a quoted string or
even a variable (e.g.,
LDV,'U'
or
LDV,v25
).
- Parameters:
<E>
- the enumeration that lists the command options and is wrapped by this class. The
enumeration must implement a static method fromLetter
with the following
signature for reflection to work:
public static E fromLetter(final char aLetter);
Constructors |
Initializes an instance of this class.
- Parameters:
aKlass - class of enumeration, which cannot be derived from generic E and must be passed.
anOptionChar - a valid option character.
aUserRID - report ID string that is meaningful to user as an error context.
aLineNumber - line number in report where command option occurs.
public CharCmdOptionConcatExpr(java.lang.Class aKlass, char anOptionChar, java.lang.String aUserRID, int aLineNumber)
|
Initializes an instance of this class.
- Parameters:
aKlass - class of enumeration, which cannot be derived from generic E and must be passed.
aSimpleExpr - a "simple" concatenation expression, either text or a variable dereference.
aUserRID - report ID string that is meaningful to user as an error context.
aLineNumber - line number in report where command option occurs.
public CharCmdOptionConcatExpr(java.lang.Class aKlass, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aSimpleExpr, java.lang.String aUserRID, int aLineNumber)
|
Initializes an instance of this class.
- Parameters:
aKlass - class of enumeration, which cannot be derived from generic E and must be passed.
anOptionString - one or more valid option characters.
aUserRID - report ID string that is meaningful to user as an error context.
aLineNumber - line number in report where command option occurs.
public CharCmdOptionConcatExpr(java.lang.Class aKlass, java.lang.String anOptionString, java.lang.String aUserRID, int aLineNumber)
|
Methods |
public java.util.EnumSet options()
|
public java.util.List optionVariable()
|
Expression that is simply the concatenation of other expressions, and is used
to print data in Mapper and to initialize variables.
Treat this class as "thread-safe", since it is immutable once created.
Methods |
Concatenate expression with other expressions, appending value of expression.
- Parameters:
anExpr - expression to concatenate.
public void concat(com.arsi.mj.maprpt.lexer.ptree.expr.IMaprptExpr anExpr)
|
public boolean equals(java.lang.Object anObject)
|
Get expressions to concatenate.
- Returns:
- list of expressions to concatenate.
public final java.util.List expressionsToConcat()
|
public int hashCode()
|
public java.util.List referencedVariables()
|
public java.lang.String toMapperString()
|
Variable declaring expression that combines a variable type and size with a
variable reference, e.g.,
<myVar>s20
or
V55f6.2
.
Such variable declarations may occur instead of more typical variable
dereferences (e.g., V55f6.2 instead of v55) while parsing commands not
dedicated to variable definition such as
LDV
.
Treat this class as "thread-safe", since it is immutable once created.
Defines an expression that represents the various ways a command option may
be specified in a Mapper RUN command. For example, while a command option is
usually an alphabetic literal such as
LDV,U
, the option might be
stored as a quoted string or even a variable.
- Parameters:
<E>
- the enumeration that lists the command options.
public interface com.arsi.mj.maprpt.lexer.ptree.expr.ICommandOptionExpr
Methods |
Convert expression to set of command options.
- Returns:
- command options as enumeration set.
public java.util.EnumSet options()
|
Get variable(s) in expression that contains options that are typically evaluated at run-time.
- Returns:
- variable(s) in expression that contain option(s) or empty list if none (meaning
value of options expression can be easily determined at compile time).
public java.util.List optionVariable()
|
Denotes a parsed Mapper expression of some kind.
public interface com.arsi.mj.maprpt.lexer.ptree.expr.IMaprptExpr
Methods |
Convert expression to Mapper source string.
- Returns:
- expression as Mapper source string.
public java.lang.String toMapperString()
|
Interface: IVariableDerefExplicitExpr
previous
next
package
Marker interface that denotes an expression that directly and explicitly
dereferences a variable, i.e., provides a direct path to access the value of
a specific variable.
Marker interface that denotes an expression that dereferences a variable, i.e.,
provides a path to access the value of a variable.
Interface: IVariableDerefImpliedExpr
previous
next
package
Marker interface that denotes an expression that indirectly or implicitly
dereferences a variable, i.e., provides a path that ultimately accesses
the value of a variable.
Expression that represents a reserved word.
Treat this class as "thread-safe", since it is immutable once created.
Methods |
public boolean equals(java.lang.Object anObject)
|
public int hashCode()
|
public java.lang.String toMapperString()
|
Formatting expression that combines formatting directive with a reserved word
or string bounds that is dereferenced by the directive.
Treat this class as "thread-safe", since it is immutable once created.
Fields |
Formatting to apply to reserved word. public final java.util.EnumSet formats
|
reserved word or reserved word string bounds dereferenced by formatting directive. public final com.arsi.mj.maprpt.lexer.ptree.expr.IMaprptExpr reservedOrBoundsExpr
|
Constructors |
Initializes an instance of this class.
- Parameters:
someFmts - formatting to apply to variable.
aResvWordExpr - reserved word dereferenced by formatting directive.
public ReservedWordRefmtExpr(java.util.EnumSet someFmts, com.arsi.mj.maprpt.lexer.ptree.expr.ReservedWordExpr aResvWordExpr)
|
Initializes an instance of this class.
- Parameters:
someFmts - formatting to apply to variable.
aResvWordExpr - reserved word string bounds dereferenced by formatting directive.
public ReservedWordRefmtExpr(java.util.EnumSet someFmts, com.arsi.mj.maprpt.lexer.ptree.expr.ReservedWordStrboundsExpr aResvWordExpr)
|
Methods |
public boolean equals(java.lang.Object anObject)
|
public int hashCode()
|
public java.lang.String toMapperString()
|
Substring expression that combines a string bounds with a variable or array
that is dereferenced by the bounds.
Treat this class as "thread-safe", since it is immutable once created.
Methods |
public boolean equals(java.lang.Object anObject)
|
public int hashCode()
|
public java.lang.String toMapperString()
|
A concatenation expression that wraps the various ways a string-valued command
option may be specified. For example, while a command option is usually an alphabetic
literal such as
IF,D1
, the option might be stored as a quoted string or
even a variable (e.g.,
IF,'D1'
or
IF,v25
).
- Parameters:
<E>
- the enumeration that lists the command options and is wrapped by this class. The
enumeration must implement a static method fromString
with the following
signature for reflection to work:
public static E fromString(final String aStropt);
Constructors |
Initializes an instance of this class.
- Parameters:
aKlass - class of enumeration, which cannot be derived from generic E and must be passed.
aSimpleExpr - a "simple" concatenation expression, either text or a variable dereference.
aUserRID - report ID string that is meaningful to user as an error context.
aLineNumber - line number in report where command option occurs.
public StrCmdOptionConcatExpr(java.lang.Class aKlass, com.arsi.mj.maprpt.lexer.ptree.expr.ConcatExpr aSimpleExpr, java.lang.String aUserRID, int aLineNumber)
|
Methods |
public java.util.EnumSet options()
|
public java.util.List optionVariable()
|
Expression that represents text.
Treat this class as "thread-safe", since it is immutable once created.
Fields |
Text represented by this expression. public final java.lang.String text
|
Constructors |
Initializes an instance of this class.
- Parameters:
aText - text represented by this expression.
public TextExpr(java.lang.String aText)
|
Methods |
public boolean equals(java.lang.Object anObject)
|
public int hashCode()
|
public java.lang.String toMapperString()
|
Expression that represents a variable.
Treat this class as "thread-safe", since it is immutable once created.
Formatting expression that combines formatting directive with a a string bounds,
variable or array member that is dereferenced by the directive.
Treat this class as "thread-safe", since it is immutable once created.
Constructors |
Initializes an instance of this class.
- Parameters:
someFmts - formatting to apply to variable.
aVarExpr - variable dereferenced by formatting directive.
public VariableRefmtExpr(java.util.EnumSet someFmts, com.arsi.mj.maprpt.lexer.ptree.expr.IVariableDerefExpr aVarExpr)
|
Substring expression that combines a string bounds with a variable or array
that is dereferenced by the bounds.
Treat this class as "thread-safe", since it is immutable once created.