1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.expreval.expr;
22
23 import org.apache.expreval.expr.node.GenericValue;
24
25 import java.util.List;
26
27 public abstract class NotValue<T extends GenericExpression> extends DelegateStmt<T> {
28
29 private final boolean not;
30
31 protected NotValue(final ExpressionType type, final boolean not, GenericValue... args) {
32 super(type, args);
33 this.not = not;
34 }
35
36 protected NotValue(final ExpressionType type, final boolean not, final List<GenericValue> args) {
37 super(type, args);
38 this.not = not;
39 }
40
41 protected NotValue(final ExpressionType type, final boolean not, final GenericValue arg, final List<GenericValue> argList) {
42 super(type, arg, argList);
43 this.not = not;
44 }
45
46 public boolean isNot() {
47 return this.not;
48 }
49
50 protected String notAsString() {
51 return (this.isNot()) ? " NOT" : "";
52 }
53 }