Examples of accept()


Examples of javassist.compiler.ast.Expr.accept()

/*     */         throws CompileError
/*     */       {
/* 496 */         Expr expr = Expr.make(35, new Symbol(this.val$c), new Member(this.val$m));
/*     */
/* 498 */         expr = CallExpr.makeCall(expr, args);
/* 499 */         expr.accept(check);
/* 500 */         check.addNullIfVoid();
/*     */       }
/*     */     };
/* 504 */     this.gen.setProceedHandler(h, "$proceed");
/*     */   }
View Full Code Here

Examples of javassist.compiler.ast.Member.accept()

/* 454 */         ASTree expr = new Member(this.val$m);
/* 455 */         if (this.val$texpr != null) {
/* 456 */           expr = Expr.make(46, this.val$texpr, expr);
/*     */         }
/* 458 */         expr = CallExpr.makeCall(expr, args);
/* 459 */         expr.accept(check);
/* 460 */         check.addNullIfVoid();
/*     */       }
/*     */     };
/* 464 */     this.gen.setProceedHandler(h, "$proceed");
/*     */   }
View Full Code Here

Examples of javassist.compiler.ast.Stmnt.accept()

/*  228 */       bc.addExceptionHandler(start, end, bc.currentPc(), type);
/*  229 */       bc.growStack(1);
/*  230 */       bc.addAstore(var);
/*  231 */       this.hasReturned = false;
/*  232 */       if (block != null) {
/*  233 */         block.accept(this);
/*      */       }
/*  235 */       if (!this.hasReturned) {
/*  236 */         bc.addOpcode(167);
/*  237 */         gotoList.add(new Integer(bc.currentPc()));
/*  238 */         bc.addIndex(0);
View Full Code Here

Examples of javax.jbi.messaging.DeliveryChannel.accept()

        // Create another thread
        Thread t = new Thread() {
            public void run() {
                try {
                    InOut me = (InOut) channel.accept(5000);
                    NormalizedMessage nm = me.createMessage();
                    nm.setContent(new StringSource("<response/>"));
                    me.setOutMessage(nm);
                    channel.sendSync(me);
                    success.set(true);
View Full Code Here

Examples of javax.jcr.Item.accept()

                                currentLevel++;
                                currentQueue = nextQueue;
                                nextQueue = new LinkedList();
                            }
                            Item e = (Item) currentQueue.removeFirst();
                            e.accept(this);
                        }
                        currentLevel = 0;
                    }
                } catch (RepositoryException re) {
                    currentLevel = 0;
View Full Code Here

Examples of javax.jcr.Node.accept()

                assertTrue("Visited node is not the same as the one passed in method visit(Node)",
                        n.isSame(node));
            }
        };

        n.accept(itemVisitor);
    }

    // -----------< tests of Node specific methods >----------------------------

    /**
 
View Full Code Here

Examples of javax.jcr.Property.accept()

            public void visit(Node node) {
                fail("Wrong accept method executed.");
            }
        };

        p.accept(itemVisitor);
    }

    /**
     * Tests that no null value property exists in a given node tree.
     */
 
View Full Code Here

Examples of javax.lang.model.element.AnnotationValue.accept()

  private List<? extends AnnotationValue> getValidatorClassesFromConstraintMetaAnnotation(AnnotationMirror constraintMetaAnnotation) {

    AnnotationValue validatedBy = annotationApiHelper.getAnnotationValue( constraintMetaAnnotation, "validatedBy" );

    return validatedBy.accept(
        new SimpleAnnotationValueVisitor6<List<? extends AnnotationValue>, Void>() {

          @Override
          public List<? extends AnnotationValue> visitArray(List<? extends AnnotationValue> values, Void p) {
            return values;
View Full Code Here

Examples of javax.lang.model.element.Element.accept()

    if (!result) {
      Element superclass =
          utils.typeUtils.asElement(e.getSuperclass());
      if (superclass != null) {
        /* Scans up in the syntax tree looking for contract annotations. */
        result = superclass.accept(this, null);
      }
    }

    /* Checks interfaces. */
    if (!result) {
View Full Code Here

Examples of javax.lang.model.element.TypeElement.accept()

      if (superMirror.getKind() == TypeKind.DECLARED) {
        TypeElement superType =
            (TypeElement) utils.typeUtils.asElement(superMirror);
        SuperCallBuilder visitor =
            new SuperCallBuilder((DeclaredType) superMirror, type, utils);
        superType.accept(visitor, null);
      }
    }

    /* Process generic signature. */
    List<? extends TypeParameterElement> typeParams = e.getTypeParameters();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.