public class AggregatorUtil
extends java.lang.Object
Constructor and Description |
---|
AggregatorUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getAggregateVariableIndex(AggregatedValue value) |
static VariableValue |
getAggregatorVariable(AggregatedValue value)
Returns the aggregate variable the aggregator should work with.
|
static java.util.List<VariableValue> |
getAllAggregatorVariables(AggregatedValue value)
Returns all aggregate variables of the AggregatedValue.
|
static java.util.List<org.eclipse.xtext.common.types.JvmType> |
getParameterTypes(org.eclipse.xtext.common.types.JvmDeclaredType aggregatorType) |
static java.util.List<org.eclipse.xtext.common.types.JvmType> |
getReturnTypes(org.eclipse.xtext.common.types.JvmDeclaredType aggregatorType) |
static boolean |
mustHaveAggregatorVariables(AggregatedValue value)
An aggregator expression may only have aggregated value as parameters if the corresponding
AggregatorType annotation
does not define a single Void parameter. |
public static java.util.List<org.eclipse.xtext.common.types.JvmType> getReturnTypes(org.eclipse.xtext.common.types.JvmDeclaredType aggregatorType)
public static java.util.List<org.eclipse.xtext.common.types.JvmType> getParameterTypes(org.eclipse.xtext.common.types.JvmDeclaredType aggregatorType)
public static boolean mustHaveAggregatorVariables(AggregatedValue value)
AggregatorType
annotation
does not define a single Void parameter. However, in that case, it _must_ have an aggregate parameter.public static int getAggregateVariableIndex(AggregatedValue value)
public static VariableValue getAggregatorVariable(AggregatedValue value)
public static java.util.List<VariableValue> getAllAggregatorVariables(AggregatedValue value)