public class And extends CompositeExpression
Constructor and Description |
---|
And(Expression... expressions)
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
|
protected java.lang.String |
getSeparator()
Gets the separator used to separate the sub-expressions when converting the
expression to a String
|
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
|
getExpressions, toString
public And(Expression... expressions)
expressions
- the sub expressionspublic void accept(Visitor visitor)
visitor
- the visitorprotected java.lang.String getSeparator()
getSeparator
in class CompositeExpression
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