コード例 #1
0
 @Override
 public Expression rewrite(UnaryExpression src, boolean changed, Expression newChild) {
   final UnaryExpression expr;
   if (changed) {
     expr = getFactory().makeUnaryExpression(src.getTag(), newChild, src.getSourceLocation());
   } else {
     expr = src;
   }
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #2
0
 @Override
 public Predicate rewrite(
     ExtendedPredicate src,
     boolean changed,
     Expression[] newChildExprs,
     Predicate[] newChildPreds) {
   final ExtendedPredicate pred;
   if (changed) {
     pred =
         getFactory()
             .makeExtendedPredicate(
                 src.getExtension(), newChildExprs, newChildPreds, src.getSourceLocation());
   } else {
     pred = src;
   }
   return checkReplacement(src, rewriter.rewrite(pred));
 }
コード例 #3
0
 @Override
 public Expression rewrite(
     ExtendedExpression src,
     boolean changed,
     Expression[] newChildExprs,
     Predicate[] newChildPreds) {
   final ExtendedExpression expr;
   if (changed) {
     expr =
         getFactory()
             .makeExtendedExpression(
                 src.getExtension(),
                 newChildExprs,
                 newChildPreds,
                 src.getSourceLocation(),
                 src.getType());
   } else {
     expr = src;
   }
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #4
0
 @Override
 public Expression rewrite(AssociativeExpression src, AssociativeExpression expr) {
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #5
0
 @Override
 public void leavingQuantifier(int nbOfDeclarations) {
   rewriter.leavingQuantifier(nbOfDeclarations);
 }
コード例 #6
0
 @Override
 public boolean autoFlatteningMode() {
   return rewriter.autoFlatteningMode();
 }
コード例 #7
0
 @Override
 public Expression rewrite(UnaryExpression src, IntegerLiteral expr) {
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #8
0
 @Override
 public Expression rewrite(BinaryExpression src, BinaryExpression expr) {
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #9
0
 @Override
 public Expression rewrite(SetExtension src, SetExtension expr) {
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #10
0
 @Override
 public Predicate rewrite(RelationalPredicate src, RelationalPredicate pred) {
   return checkReplacement(src, rewriter.rewrite(pred));
 }
コード例 #11
0
 @Override
 public Predicate rewrite(QuantifiedPredicate src, QuantifiedPredicate pred) {
   return checkReplacement(src, rewriter.rewrite(pred));
 }
コード例 #12
0
 @Override
 public Expression rewrite(QuantifiedExpression src, QuantifiedExpression expr) {
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #13
0
 @Override
 public Predicate rewrite(LiteralPredicate src) {
   return checkReplacement(src, rewriter.rewrite(src));
 }
コード例 #14
0
 @Override
 public Expression rewrite(IntegerLiteral src) {
   return checkReplacement(src, rewriter.rewrite(src));
 }
コード例 #15
0
 @Override
 public Expression rewrite(FreeIdentifier src) {
   return checkReplacement(src, rewriter.rewrite(src));
 }
コード例 #16
0
 @Override
 public Predicate rewrite(AssociativePredicate src, AssociativePredicate pred) {
   return checkReplacement(src, rewriter.rewrite(pred));
 }
コード例 #17
0
 @Override
 public Expression rewrite(AtomicExpression src) {
   return checkReplacement(src, rewriter.rewrite(src));
 }
コード例 #18
0
 @Override
 public Expression rewriteToEmptySet(SetExtension src) {
   final AtomicExpression expr = factory.makeEmptySet(src.getType(), src.getSourceLocation());
   return checkReplacement(src, rewriter.rewrite(expr));
 }
コード例 #19
0
 @Override
 public Predicate rewrite(BinaryPredicate src, BinaryPredicate pred) {
   return checkReplacement(src, rewriter.rewrite(pred));
 }
コード例 #20
0
 @Override
 public Predicate rewrite(SimplePredicate src, SimplePredicate pred) {
   return checkReplacement(src, rewriter.rewrite(pred));
 }