public class GroupingExpression extends Expression implements Serializable
Example: ((<nestedExpr>) <operator> (<nestedExpr>) [<operator> (<nestedExpr>) ...])
Java class for GroupingExpression complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="GroupingExpression"> <complexContent> <extension base="{}Expression"> <sequence> <element name="nestedExpression" type="{}Expression" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="operator" use="required" type="{}GroupingOperator" /> </extension> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
static GroupingExpression |
EMPTY_INSTANCE |
protected List<Expression> |
nestedExpressions |
protected GroupingOperator |
operator |
Constructor and Description |
---|
GroupingExpression() |
Modifier and Type | Method and Description |
---|---|
GroupingExpression |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
GroupingExpression |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected GroupingExpression |
copy(GroupingExpression nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
List<Expression> |
getNestedExpressions()
The nested expressions which will be joined by the defined logical operator.
|
GroupingOperator |
getOperator()
The logical operator which will be used to join all the nested expressions.
|
int |
hashCode() |
void |
setOperator(GroupingOperator value)
Sets the value of the operator property.
|
String |
toString() |
GroupingExpression |
withNestedExpressions(Collection<? extends Expression> newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.
|
GroupingExpression |
withNestedExpressions(Expression... newValues)
Adds the given newValues to the current nestedExpressions property List and returns this instance.
|
GroupingExpression |
withOperator(GroupingOperator newValue)
Sets the operator property to the given newValue and returns this instance.
|
copy
protected List<Expression> nestedExpressions
protected GroupingOperator operator
public static final GroupingExpression EMPTY_INSTANCE
public List<Expression> getNestedExpressions()
Gets the value of the nestedExpressions property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the nestedExpressions property.
For example, to add a new item, do as follows:
getNestedExpressions().add(newItem);
Objects of the following type(s) are allowed in the list
Expression
public GroupingOperator getOperator()
GroupingOperator
public void setOperator(GroupingOperator value)
value
- allowed object is
GroupingOperator
public int hashCode()
hashCode
in class Expression
public String toString()
toString
in class Expression
public boolean equals(Object o)
equals
in class Expression
public GroupingExpression copy()
copy
in class Expression
public GroupingExpression copy(boolean isDeep)
copy
in class Expression
protected GroupingExpression copy(GroupingExpression nobj, boolean isDeep)
public GroupingExpression withNestedExpressions(Expression... newValues)
public GroupingExpression withNestedExpressions(Collection<? extends Expression> newValues)
public GroupingExpression withOperator(GroupingOperator newValue)