public class ToClause
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static decimal |
DEC_ZERO
A cached decimal zero.
|
private NumberType |
factor
Increment or decrement factor.
|
private boolean |
first
true until the loop increment and test has been called. |
private static decimal |
HALF
A cached decimal
.5 . |
private static integer |
INT_ONE
A cached integer one.
|
private static integer |
INT_ZERO
A cached integer zero.
|
private boolean |
neg
true if the raw factor was negative. |
private static decimal |
NEG_HALF
A cached decimal
-.5 . |
private boolean |
num
true if the loop control variable is numeric. |
private BaseDataType |
original
Original initial value for the loop control variable.
|
private Resolvable |
term
Termination condition for the loop.
|
private boolean |
up
true if the initial value is less than the term value. |
private Accessor |
var
The value being incremented or decremented.
|
Constructor and Description |
---|
ToClause(Accessor var,
BaseDataType init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
BaseDataType init,
BaseDataType term,
BaseDataType factor)
Core constructor that handles the real work of creating a new instance.
|
ToClause(Accessor var,
BaseDataType init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
double term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
BaseDataType init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
double term,
double factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
double term,
long factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
long term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
BaseDataType init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
long term,
double factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
long term,
long factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
BaseDataType init,
Resolvable term,
BaseDataType factor)
Core constructor that handles the real work of creating a new instance.
|
ToClause(Accessor var,
BaseDataType init,
Resolvable term,
double factor)
Constructor.
|
ToClause(Accessor var,
BaseDataType init,
Resolvable term,
long factor)
Constructor.
|
ToClause(Accessor var,
double init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
double init,
BaseDataType term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
double init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(Accessor var,
double init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(Accessor var,
double init,
double term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
double init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
double init,
double term,
double factor)
Constructor.
|
ToClause(Accessor var,
double init,
double term,
long factor)
Constructor.
|
ToClause(Accessor var,
double init,
long term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
double init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
double init,
long term,
double factor)
Constructor.
|
ToClause(Accessor var,
double init,
long term,
long factor)
Constructor.
|
ToClause(Accessor var,
double init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
double init,
Resolvable term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
double init,
Resolvable term,
double factor)
Constructor.
|
ToClause(Accessor var,
double init,
Resolvable term,
long factor)
Constructor.
|
ToClause(Accessor var,
long init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
long init,
BaseDataType term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
long init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(Accessor var,
long init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(Accessor var,
long init,
double term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
long init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
long init,
double term,
double factor)
Constructor.
|
ToClause(Accessor var,
long init,
double term,
long factor)
Constructor.
|
ToClause(Accessor var,
long init,
long term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
long init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
long init,
long term,
double factor)
Constructor.
|
ToClause(Accessor var,
long init,
long term,
long factor)
Constructor.
|
ToClause(Accessor var,
long init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(Accessor var,
long init,
Resolvable term,
BaseDataType factor)
Constructor.
|
ToClause(Accessor var,
long init,
Resolvable term,
double factor)
Constructor.
|
ToClause(Accessor var,
long init,
Resolvable term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
BaseDataType init,
BaseDataType term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
double term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
BaseDataType init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
double term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
double term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
long term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
BaseDataType init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
long term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
long term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
BaseDataType init,
Resolvable term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
Resolvable term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
BaseDataType init,
Resolvable term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
double init,
BaseDataType term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
double term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
double init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
double term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
double term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
long term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
double init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
long term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
long term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
double init,
Resolvable term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
Resolvable term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
double init,
Resolvable term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
BaseDataType term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
long init,
BaseDataType term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
BaseDataType term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
BaseDataType term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
double term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
long init,
double term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
double term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
double term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
long term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
long init,
long term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
long term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
long term,
long factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
Resolvable term)
Constructor with a default factor of 1.
|
ToClause(BaseDataType var,
long init,
Resolvable term,
BaseDataType factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
Resolvable term,
double factor)
Constructor.
|
ToClause(BaseDataType var,
long init,
Resolvable term,
long factor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private BaseDataType |
factorQuirk(NumberType init)
Modify the initial value and the factor in cases where the factor
is a special decimal value AND the variable being incremented is an
integer/int64.
|
private static Resolvable |
genExpr(BaseDataType bdt)
Generate a resolvable instance from a base data type.
|
boolean |
incrementAndTest()
Increment (or decrement if using a negative factor) the loop control
variable and return the result of the test of whether the loop should
continue or not.
|
private static final decimal DEC_ZERO
private static final integer INT_ZERO
private static final integer INT_ONE
private static final decimal HALF
.5
.private static final decimal NEG_HALF
-.5
.private Accessor var
private Resolvable term
private BaseDataType original
private NumberType factor
private boolean num
true
if the loop control variable is numeric.private boolean up
true
if the initial value is less than the term value.private boolean neg
true
if the raw factor was negative.private boolean first
true
until the loop increment and test has been called.public ToClause(Accessor var, BaseDataType init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, long init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, double init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, BaseDataType init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, long init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, double init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, BaseDataType init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, long init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, double init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, BaseDataType init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, BaseDataType init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, long init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, long init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(Accessor var, double init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(Accessor var, double init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, BaseDataType init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, long init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, double init, Resolvable term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, Resolvable term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, Resolvable term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, Resolvable term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, BaseDataType init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, long init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, double init, BaseDataType term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, BaseDataType term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, BaseDataType term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, BaseDataType term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be evaluated each time the
loop body will be executed. This newly evaluated value (which
may change on each pass through the loop) will be compared
to the loop variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, BaseDataType init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, long init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, double init, long term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, long term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, long term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, long term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, BaseDataType init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, BaseDataType init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, long init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, long init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public ToClause(BaseDataType var, double init, double term, BaseDataType factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, double term, long factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, double term, double factor)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.factor
- The amount (and direction) of change for each time through
the loop. A positive value will increment the loop control
value and a negative value decrements the loop control value.public ToClause(BaseDataType var, double init, double term)
var
- The variable or field whose value is used for loop control.
This value will be incremented or decremented in each pass
through the loop. The comparison of this value with the
termination value will be used to exit the loop. The value
may be of either date or numeric types.init
- The initial value which will be assigned to the loop control
variable. The type of this value must be assignable to the
type of the loop control variable.term
- The termination value which will be compared to the loop
control variable to determine when the loop must exit.
The type of this value must be comparable with the type of
the loop control value.public boolean incrementAndTest()
This method's behavior depends on the "direction" of the to clause. If
the initial value of the clause is less than the termination value, then
the direction will be considered an "up" or incrementing direction. If
the initial value is greater than the termination value, then the
direction of the to clause will be considered to be a "down" or
decrementing direction. This matters because the loop will immediately
exit (this method will return false
) if either of the
following conditions occur:
If the direction based immediate exit does not occur, then for each
call to this method, the factor (possibly modified during construction)
will be added to the loop control value. This updated loop control
value will be compared to the termination value based on the direction
of the to clause. The following conditions cause the loop to exit (by
returning false
from this method):
true
if the loop body should execute again and
false
if the loop should exit.private static Resolvable genExpr(BaseDataType bdt)
bdt
- The instance to wrap in a resolvable.private BaseDataType factorQuirk(NumberType init)
The following rules apply:
Factor Initial Value Factor Initial Value (on input) (on input) (on output) (on output) ---------- ------------- ------------ ------------- 3.5 (*) non-positive 4 (rounded) value - 1 3.5 (*) positive 4 (rounded) value + 1 2.5 non-positive 3 (rounded) value - 1 2.5 positive 3 (rounded) value + 1 1.5 non-positive 2 (rounded) value - 1 1.5 positive 2 (rounded) value + 1 .5 non-positive 0 value - 1 .5 positive 1 (rounded) value + 1 -.5 negative -1 value - 1 -.5 non-negative 0 (rounded) value + 1 -1.5 negative -1 (rounded) value - 1 -1.5 non-negative -1 (rounded) value + 1 -2.5 (*) negative -2 (rounded) value - 1 -2.5 (*) non-negative -2 (rounded) value + 1 (*) All similar numbers on the .5 "boundary" will have this same behavior. So 3.5, 4.5, 5.5... will all have the same behavior. Likewise, -2.5, -3.5, -4.5... will all have the same behavior. In particular, the factor on output will be rounded to the nearest integer and the initial value will be increased or decreased by 1 depending on the sign of the original initial value.
None of this makes any logical sense, it is just a buggy implementation of the 4GL. We match those bugs so that dependent code will work.
init
- The original initial value which may be modified based on the
rules above.