1 7 8 package javax.management; 9 10 11 18 class NotQueryExp extends QueryEval implements QueryExp { 19 20 21 22 private static final long serialVersionUID = 5269643775896723397L; 23 24 27 private QueryExp exp; 28 29 30 33 public NotQueryExp() { 34 } 35 36 39 public NotQueryExp(QueryExp q) { 40 exp = q; 41 } 42 43 44 47 public QueryExp getNegatedExp() { 48 return exp; 49 } 50 51 63 public boolean apply(ObjectName name) throws BadStringOperationException , BadBinaryOpValueExpException , 64 BadAttributeValueExpException , InvalidApplicationException { 65 return exp.apply(name) == false; 66 } 67 68 71 public String toString() { 72 return "not (" + exp + ")"; 73 } 74 75 } 76 | Popular Tags |