|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.xl.lang.Aggregate
public final class Aggregate
An instance of Aggregate
is used in aggregate method
invocations as specified by the XL programming language.
Aggregate methods use such an instance to collect the information
about a sequence of values which they need to compute an
aggregate value.
Field Summary | |
---|---|
java.lang.Object |
aval
This field contains the result if the type is a reference type. |
java.lang.Object |
aval1
This field may be used freely by aggregate methods. |
java.lang.Object |
aval2
This field may be used freely by aggregate methods. |
java.lang.Object |
aval3
This field may be used freely by aggregate methods. |
java.lang.Object |
aval4
This field may be used freely by aggregate methods. |
double |
dval
This field contains the result if the type is double . |
double |
dval1
This field may be used freely by aggregate methods. |
double |
dval2
This field may be used freely by aggregate methods. |
double |
dval3
This field may be used freely by aggregate methods. |
double |
dval4
This field may be used freely by aggregate methods. |
float |
fval
This field contains the result if the type is float . |
float |
fval1
This field may be used freely by aggregate methods. |
float |
fval2
This field may be used freely by aggregate methods. |
float |
fval3
This field may be used freely by aggregate methods. |
float |
fval4
This field may be used freely by aggregate methods. |
int |
ival
This field contains the result if the type is boolean , byte , short ,
char , or int . |
int |
ival1
This field may be used freely by aggregate methods. |
int |
ival2
This field may be used freely by aggregate methods. |
int |
ival3
This field may be used freely by aggregate methods. |
int |
ival4
This field may be used freely by aggregate methods. |
long |
lval
This field contains the result if the type is long . |
long |
lval1
This field may be used freely by aggregate methods. |
long |
lval2
This field may be used freely by aggregate methods. |
long |
lval3
This field may be used freely by aggregate methods. |
long |
lval4
This field may be used freely by aggregate methods. |
Method Summary | |
---|---|
static Aggregate |
allocate(java.lang.Class type)
|
static java.lang.Object |
aval(Aggregate a)
|
static double |
dval(Aggregate a)
|
static float |
fval(Aggregate a)
|
java.lang.Class |
getType()
Returns the result type of the aggregation. |
boolean |
initialize()
Returns true the first time it is invoked. |
boolean |
isFinished()
Returns true iff setFinished() has been called
previously. |
static int |
ival(Aggregate a)
|
static long |
lval(Aggregate a)
|
void |
setFinished()
Sets the finished -flags to true . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Object aval
getType()
.
public java.lang.Object aval1
public java.lang.Object aval2
public java.lang.Object aval3
public java.lang.Object aval4
public double dval
double
.
public double dval1
public double dval2
public double dval3
public double dval4
public float fval
float
.
public float fval1
public float fval2
public float fval3
public float fval4
public int ival
boolean
, byte
, short
,
char
, or int
.
public int ival1
public int ival2
public int ival3
public int ival4
public long lval
long
.
public long lval1
public long lval2
public long lval3
public long lval4
Method Detail |
---|
public static Aggregate allocate(java.lang.Class type)
public static java.lang.Object aval(Aggregate a)
public static double dval(Aggregate a)
public static float fval(Aggregate a)
public java.lang.Class getType()
aval
public boolean initialize()
true
the first time it is invoked.
This has to be queried in implementations of aggregate methods
to initialize their computation.
true
iff this method is invoked the first
time for a specific invocation of an aggregate methodpublic boolean isFinished()
true
iff setFinished()
has been called
previously. This is used for two purposes:
ival
, lval
, fval
, dval
,
or aval
).
true
-value
is encountered. The invoker must not invoke the aggregate method
again.
true
iff setFinished()
has been called
previouslypublic static int ival(Aggregate a)
public static long lval(Aggregate a)
public void setFinished()
finished
-flags to true
.
isFinished()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |