Interface AggregationVariable
- All Superinterfaces:
Field
- All Known Implementing Classes:
ArrayOperators.Reduce.Variable
,SystemVariable
A special field that points to a variable
$$
expression.- Since:
- 4.1.3
- Author:
- Christoph Strobl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getName()
Returns the name of the field.default boolean
Returns whether the Field is aliased, which means it has a name set different from the target.default boolean
static boolean
isVariable
(String fieldRef) Check if the given field name reference may be variable.static boolean
isVariable
(Field field) Check if the given field may be variable.static AggregationVariable
localVariable
(String value) Create a newlocal
AggregationVariable
for the given name.static AggregationVariable
Create a newAggregationVariable
for the given name.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
isAliased
default boolean isAliased()Description copied from interface:Field
Returns whether the Field is aliased, which means it has a name set different from the target. -
getName
Description copied from interface:Field
Returns the name of the field. -
isInternal
default boolean isInternal()- Specified by:
isInternal
in interfaceField
- Returns:
- true if the field name references a local value such as
$$this
.
-
variable
Create a newAggregationVariable
for the given name.Variables start with
$$
. If not, the given value gets prefixed with$$
.- Parameters:
value
- must not be null.- Returns:
- new instance of
AggregationVariable
. - Throws:
IllegalArgumentException
- if given value is null.
-
localVariable
Create a newlocal
AggregationVariable
for the given name.Variables start with
$$
. If not, the given value gets prefixed with$$
.- Parameters:
value
- must not be null.- Returns:
- new instance of
AggregationVariable
. - Throws:
IllegalArgumentException
- if given value is null.
-
isVariable
Check if the given field name reference may be variable.- Parameters:
fieldRef
- can be null.- Returns:
- true if given value matches the variable identification pattern.
-
isVariable
Check if the given field may be variable.- Parameters:
field
- can be null.- Returns:
- true if given
field
is anAggregationVariable
or if its value is avariable
.
-