Ejemplo n.º 1
0
 protected void standardPrimePumpProcessing() {
   JMethodDeclaration primePump = joiner_code.getPrimePumpMethod();
   if (primePump != null && !codeStore.hasMethod(primePump)) {
     // Add method -- but only once
     codeStore.addMethod(primePump);
   }
   if (primePump != null) {
     // for each time this method is called, it adds another call
     // to the primePump routine to the initialization.
     codeStore.addInitStatement(
         new JExpressionStatement(
             null,
             new JMethodCallExpression(
                 null, new JThisExpression(null), primePump.getName(), new JExpression[0]),
             null));
   }
 }