Package org.teiid.query.sql.lang
Class NotCriteria
- java.lang.Object
-
- org.teiid.query.sql.lang.Criteria
-
- org.teiid.query.sql.lang.LogicalCriteria
-
- org.teiid.query.sql.lang.AtomicCriteria
-
- org.teiid.query.sql.lang.NotCriteria
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
,Expression
public class NotCriteria extends AtomicCriteria
A logical criteria that takes the logical NOT of the contained criteria. That is, if the contained criteria returns true, this criteria returns false. For example: "NOT (element = 5)"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Constructor Summary
Constructors Constructor Description NotCriteria()
Constructs a default instance of this class.NotCriteria(Criteria crit)
Constructs an instance of this class with sub-criteria.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.Object
clone()
Deep copy of objectboolean
equals(Object obj)
Compare equality of two AtomicCriteria.int
hashCode()
Get hash code-
Methods inherited from class org.teiid.query.sql.lang.AtomicCriteria
getCriteria, setCriteria
-
Methods inherited from class org.teiid.query.sql.lang.Criteria
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
-
-
-
-
Constructor Detail
-
NotCriteria
public NotCriteria()
Constructs a default instance of this class.
-
NotCriteria
public NotCriteria(Criteria crit)
Constructs an instance of this class with sub-criteria.- Parameters:
crit
- Contained criteria
-
-
Method Detail
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Parameters:
visitor
- Visitor being used
-
equals
public boolean equals(Object obj)
Compare equality of two AtomicCriteria.
-
clone
public Object clone()
Deep copy of object- Specified by:
clone
in interfaceLanguageObject
- Specified by:
clone
in classAtomicCriteria
- Returns:
- Deep copy of object
-
-