public class Aggregate extends java.lang.Object implements ValueExpression
Aggregate is the aggregation of a set of values through a particular function.
Values of args
have to be aggregated with op
.
Modifier and Type | Field and Description |
---|---|
private java.util.List<ValueExpression> |
arguments
In principle, this may be a single expression, but we can generalise
|
private java.net.URI |
operation
Holds the operation to apply
|
Constructor and Description |
---|
Aggregate(java.net.URI op,
java.util.List<ValueExpression> args)
Constructs an object with the given value.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EDOALVisitor visitor) |
TypeCheckingVisitor.TYPE |
accept(TypeCheckingVisitor visitor) |
boolean |
equals(java.lang.Object o) |
java.util.List<ValueExpression> |
getArguments() |
java.net.URI |
getOperation() |
int |
hashCode() |
private java.net.URI operation
private java.util.List<ValueExpression> arguments
public Aggregate(java.net.URI op, java.util.List<ValueExpression> args)
op
- the URI of the aggregation operation to apply.args
- its list of argumenstjava.lang.NullPointerException
- if the value is null
public void accept(EDOALVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
AlignmentException
public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
AlignmentException
public java.net.URI getOperation()
public java.util.List<ValueExpression> getArguments()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
(C) INRIA & friends, 2003-2020