public class Not
extends java.lang.Object
Constructor and Description |
---|
Not(Expression expression)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accepts a visitor
|
Expression |
and(Expression expression)
Creates an And expression which will be a logical "and" of this expression
and the expression passed in as a parameter
|
Expression |
getExpression()
Gets the sub expression
|
Expression |
not()
Creates a Not expression which will be the logical "not" of this epxression
|
Expression |
or(Expression expression)
Creates an Or expression which will be a logical "or" of this expression
and the expression passed in as a parameter
|
java.lang.String |
toString() |
public Not(Expression expression)
expression
- the sub expressionpublic Expression getExpression()
public void accept(Visitor visitor)
visitor
- the visitorpublic java.lang.String toString()
toString
in class java.lang.Object
public Expression and(Expression expression)
and
in interface Expression
expression
- the other expressionpublic Expression or(Expression expression)
or
in interface Expression
expression
- the other expressionpublic Expression not()
not
in interface Expression