@Override public Void visitNotMatchExpr(NotMatchExpr notMatchExpr) { visit(notMatchExpr.getOperand()); return null; }
@Override public Void visitNotMatchExpr(NotMatchExpr notMatchExpr) { // normalization retains negation on literals but not in general, so we recurse either way this.visit(notMatchExpr.getOperand()); return null; }
@Override public final AclLineMatchExpr visitNotMatchExpr(NotMatchExpr notMatchExpr) { AclLineMatchExpr subExpr = notMatchExpr.getOperand().accept(this); if (subExpr == TrueExpr.INSTANCE) { return FalseExpr.INSTANCE; } else if (subExpr == FalseExpr.INSTANCE) { return TrueExpr.INSTANCE; } else { return new NotMatchExpr(subExpr); } }
@Override public Void visitNotMatchExpr(NotMatchExpr notMatchExpr) { AclLineMatchExpr negatedOperand = Negate.negate(notMatchExpr.getOperand()); if (negatedOperand instanceof NotMatchExpr) { // negated leaf node. rather than recurse, just add to the conjuctsBuilders. addConstraint(notMatchExpr); } else { negatedOperand.accept(this); } return null; }
@Override public Boolean visitMatchHeaderSpace(MatchHeaderSpace matchHeaderSpace) { return trace(matchHeaderSpace.getHeaderspace()); }
@Override public Boolean visitNotMatchExpr(NotMatchExpr notMatchExpr) { return !notMatchExpr.getOperand().accept(this); }
@Override protected SortedSet<AclLineMatchExpr> featureValueOf(AndMatchExpr actual) { return actual.getConjuncts(); } }
@Override public Void visitMatchHeaderSpace(MatchHeaderSpace matchHeaderSpace) { requireHeaderSpace(matchHeaderSpace); return null; }
@Override public Void visitMatchSrcInterface(MatchSrcInterface matchSrcInterface) { requireSourceInterfaces(matchSrcInterface); return null; }
@Override protected String featureValueOf(DeniedByAclIpSpaceLine actual) { return actual.getLineDescription(); } }
@Override protected String featureValueOf(PermittedByAclIpSpaceLine actual) { return actual.getLineDescription(); } }
@Override protected String featureValueOf(DeniedByNamedIpSpace actual) { return actual.getName(); } }
@Override protected Integer featureValueOf(PermittedByIpAccessListLine actual) { return actual.getIndex(); } }
@Override protected String featureValueOf(DefaultDeniedByAclIpSpace actual) { return actual.getName(); } }
@Override protected String featureValueOf(PermittedByAclIpSpaceLine actual) { return actual.getName(); } }
@Override protected String featureValueOf(PermittedByIpAccessListLine actual) { return actual.getName(); } }
@Override public AclLineMatchExpr visitNotMatchExpr(NotMatchExpr notMatchExpr) { return new NotMatchExpr(notMatchExpr.getOperand().accept(this)); }
@Override public Boolean visitNotMatchExpr(NotMatchExpr notMatchExpr) { return notMatchExpr.getOperand().accept(this); }
@Override public AclLineMatchExpr visitNotMatchExpr(NotMatchExpr notMatchExpr) { return new NotMatchExpr(notMatchExpr.getOperand().accept(this)); }