public final class NotCondition extends Condition
Condition that represents a NOT condition, which negates, or reverses, the Boolean value of the base condition. A NotCondition evaluates to true if the base condition evaluates to false. It evaluates to false if the base condition evaluates to true. If the base condition evaluates to UNKNOWN, then the NotCondition evaluates to UNKNOWN.| Constructor and Description |
|---|
NotCondition(Condition baseCondition)
Creates a new
NotCondition that negates the value of the base condition. |
| Modifier and Type | Method and Description |
|---|---|
Condition |
getBaseCondition()
Gets the base condition for this
NotCondition. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitNotCondition method of the SyntaxObjectVisitor and passes that method this NotCondition and an Object. |
and, isCompositeObject, not, orequals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntaxpublic NotCondition(Condition baseCondition)
NotCondition that negates the value of the base condition.baseCondition - A Condition that evaluates to a Boolean or unknown value.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitNotCondition method of the SyntaxObjectVisitor and passes that method this NotCondition and an Object.visit in class SyntaxObjectvisitor - A SyntaxObjectVisitor.context - An Object.Object returned by the visitNotCondition method.public Condition getBaseCondition()
NotCondition.Condition to negate.