Package org.aspectj.org.eclipse.jdt.internal.compiler.codegen

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.BranchLabel.place()


    BranchLabel conditionLabel = new BranchLabel(codeStream);
    conditionLabel.tagBits |= BranchLabel.USED;
    breakLabel.initialize(codeStream);
    if (this.continueLabel == null) {
      // generate the condition (swapped for optimizing)
      conditionLabel.place();
      int conditionPC = codeStream.position;
      switch(this.kind) {
        case ARRAY :
          // inline the arraylength call
          // collectionVariable is already on execution stack
View Full Code Here


        case ARRAY :
          if (!hasEmptyAction || this.elementVariable.binding.resolvedPosition >= 0) {
            codeStream.iinc(this.indexVariable.resolvedPosition, 1);
          }
          // generate the condition
          conditionLabel.place();
          codeStream.load(this.indexVariable);
          codeStream.load(this.maxVariable);
          codeStream.if_icmplt(actionLabel);
          break;
        case RAW_ITERABLE :
View Full Code Here

          codeStream.if_icmplt(actionLabel);
          break;
        case RAW_ITERABLE :
        case GENERIC_ITERABLE :
          // generate the condition
          conditionLabel.place();
          codeStream.load(this.indexVariable);
          codeStream.invokeJavaUtilIteratorHasNext();
          codeStream.ifne(actionLabel);
          break;
      }
View Full Code Here

      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.putstatic(this.assertionSyntheticFieldBinding);
    }
  }

  protected void generatePostSyntheticCode(
View Full Code Here

      codeStream.astore_0(); // Bug #52394
      // CHECK THIS...
      codeStream.addVariable(new LocalVariableBinding("caughtException".toCharArray(),initFailureField.type,ClassFileConstants.AccPrivate,false));
        codeStream.aload_0();
      codeStream.putstatic(initFailureField);
      endLabel.place();
    }
   
  }

}
View Full Code Here

        codeStream.ldc(typeX.getName());
        codeStream.aconst_null();

        codeStream.invokespecial(world.makeMethodBindingForCall(AjcMemberMaker.noAspectBoundExceptionInit2()));
        codeStream.athrow();
        instanceFound.place();
        codeStream.aload_1();

        codeStream.areturn();
        anythingGoesWrong.placeEnd();
        anythingGoesWrong.place();
View Full Code Here

        codeStream.dup();
        codeStream.ifnull(popWrongType);
        codeStream.areturn();

        popWrongType.place();
        codeStream.pop();

        wrongType.place();
        codeStream.new_(world.makeTypeBinding(AjcMemberMaker.NO_ASPECT_BOUND_EXCEPTION));
        codeStream.dup();
View Full Code Here

        codeStream.invokeinterface(world.makeMethodBindingForCall(AjcMemberMaker.perObjectInterfaceGet(typeX)));
        codeStream.ifnull(wrongType);
        codeStream.iconst_1();
        codeStream.ireturn();

        wrongType.place();
        codeStream.iconst_0();
        codeStream.ireturn();
        // body ends here
      }
    });
View Full Code Here

        codeStream.ifnull(noInstanceExists);
        codeStream.iconst_1();
        codeStream.goto_(leave);
        noInstanceExists.place();
        codeStream.iconst_0();
        leave.place();
        goneBang.placeEnd();
        codeStream.ireturn();
        goneBang.place();
        codeStream.astore_1();
        codeStream.iconst_0();
View Full Code Here

        codeStream.dup();
        codeStream.invokespecial(new MethodBinding(0, "<init>".toCharArray(), TypeBinding.VOID, new TypeBinding[0],
            new ReferenceBinding[0], binding));
        codeStream.invokeinterface(world.makeMethodBindingForCall(AjcMemberMaker.perObjectInterfaceSet(typeX)));

        wrongType.place();
        codeStream.return_();
        // body ends here
      }
    });
  }
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.