Exemplo n.º 1
0
 protected void standardInitProcessing() {
   //      Have the main function for the CodeStore call our init if any
   codeStore.addInitFunctionCall(joiner_code.getInitMethod());
   JMethodDeclaration workAtInit = joiner_code.getInitStageMethod();
   if (workAtInit != null) {
     // if there are calls to work needed at init time then add
     // method to general pool of methods
     codeStore.addMethod(workAtInit);
     // and add call to list of calls made at init time.
     // Note: these calls must execute in the order of the
     // initialization schedule -- so caller of this routine
     // must follow order of init schedule.
     codeStore.addInitStatement(
         new JExpressionStatement(
             null,
             new JMethodCallExpression(
                 null, new JThisExpression(null), workAtInit.getName(), new JExpression[0]),
             null));
   }
 }