home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / management / NotQueryExp.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.0 KB  |  26 lines

  1. package javax.management;
  2.  
  3. class NotQueryExp extends QueryEval implements QueryExp {
  4.    private static final long serialVersionUID = 5269643775896723397L;
  5.    private QueryExp exp;
  6.  
  7.    public NotQueryExp() {
  8.    }
  9.  
  10.    public NotQueryExp(QueryExp var1) {
  11.       this.exp = var1;
  12.    }
  13.  
  14.    public QueryExp getNegatedExp() {
  15.       return this.exp;
  16.    }
  17.  
  18.    public boolean apply(ObjectName var1) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException {
  19.       return !this.exp.apply(var1);
  20.    }
  21.  
  22.    public String toString() {
  23.       return "not (" + this.exp + ")";
  24.    }
  25. }
  26.