public class SetCriteria extends AbstractSetCriteria
PredicateCriteria.Negatable
LanguageObject.Util
Constructor and Description |
---|
SetCriteria()
Constructs a default instance of this class.
|
SetCriteria(Expression expression,
Collection values)
Constructs an instance of this class with the membership expression and value expressions
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Deep copy of object
|
boolean |
equals(Object obj)
Override equals() method.
|
int |
getNumberOfValues()
Returns the number of values in the set.
|
Collection |
getValues()
Returns the set of values.
|
int |
hashCode()
Get hash code.
|
boolean |
isAllConstants() |
void |
set(Expression expression,
Collection values)
Sets the membership expression and the set of value expressions
|
void |
setAllConstants(boolean allConstants) |
void |
setValues(Collection values)
Sets the values in the set.
|
getExpression, isNegated, negate, setExpression, setNegated
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
public SetCriteria()
public SetCriteria(Expression expression, Collection values)
expression
- The membership expressionvalues
- The set of value Expression
spublic int getNumberOfValues()
public Collection getValues()
public void setValues(Collection values)
values
- The set of value Expressionspublic void set(Expression expression, Collection values)
expression
- The membership expressionvalues
- The set of value expressionspublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic int hashCode()
public boolean equals(Object obj)
public Object clone()
clone
in interface LanguageObject
clone
in class AbstractSetCriteria
public boolean isAllConstants()
public void setAllConstants(boolean allConstants)
Copyright © 2020. All rights reserved.