Examples of placeStart()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

      public void generate(CodeStream codeStream) {
        BranchLabel instanceFound = new BranchLabel(codeStream);

        ExceptionLabel anythingGoesWrong = new ExceptionLabel(codeStream, world
            .makeTypeBinding(UnresolvedType.JL_EXCEPTION));
        anythingGoesWrong.placeStart();
        codeStream.aload_0();
        codeStream.invokestatic(world.makeMethodBindingForCall(AjcMemberMaker.perTypeWithinGetInstance(typeX)));
        codeStream.astore_1();
        codeStream.aload_1();
        codeStream.ifnonnull(instanceFound);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

    generateMethod(classFile, hasAspectMethod, new BodyGenerator() {
      public void generate(CodeStream codeStream) {
        ExceptionLabel goneBang = new ExceptionLabel(codeStream, world.makeTypeBinding(UnresolvedType.JL_EXCEPTION));
        BranchLabel noInstanceExists = new BranchLabel(codeStream);
        BranchLabel leave = new BranchLabel(codeStream);
        goneBang.placeStart();
        codeStream.aload_0();
        codeStream.invokestatic(world.makeMethodBinding(AjcMemberMaker.perTypeWithinGetInstance(typeX)));
        codeStream.ifnull(noInstanceExists);
        codeStream.iconst_1();
        codeStream.goto_(leave);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

    generateMethod(classFile,
        AjcMemberMaker.perTypeWithinGetWithinTypeNameMethod(world.fromBinding(binding), world.getWorld().isInJava5Mode()),
        new BodyGenerator() {
          public void generate(CodeStream codeStream) {
            ExceptionLabel exc = new ExceptionLabel(codeStream, world.makeTypeBinding(UnresolvedType.JL_EXCEPTION));
            exc.placeStart();
            codeStream.aload_0();
            codeStream.getfield(world.makeFieldBinding(AjcMemberMaker.perTypeWithinWithinTypeField(typeX, typeX)));
            codeStream.areturn();
          }
        });
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

  private void generatePerTypeWithinGetInstanceMethod(ClassFile classFile) {
    final EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(this.scope);
    generateMethod(classFile, AjcMemberMaker.perTypeWithinGetInstance(world.fromBinding(binding)), new BodyGenerator() {
      public void generate(CodeStream codeStream) {
        ExceptionLabel exc = new ExceptionLabel(codeStream, world.makeTypeBinding(UnresolvedType.JL_EXCEPTION));
        exc.placeStart();
        codeStream.aload_0();
        codeStream.ldc(NameMangler.perTypeWithinLocalAspectOf(typeX));
        codeStream.aconst_null();
        codeStream.invokevirtual(new MethodBinding(0, "getDeclaredMethod".toCharArray(),
            world.makeTypeBinding(UnresolvedType.forSignature("Ljava/lang/reflect/Method;")), // return type
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

      generateMethod(classFile, hasAspectMethod, new BodyGenerator() {
        public void generate(CodeStream codeStream) {
             ExceptionLabel goneBang = new ExceptionLabel(codeStream,world.makeTypeBinding(UnresolvedType.JAVA_LANG_EXCEPTION));
             Label noInstanceExists = new Label(codeStream);
             Label leave = new Label(codeStream);
             goneBang.placeStart();
             codeStream.aload_0();
             codeStream.invokestatic(world.makeMethodBinding(AjcMemberMaker.perTypeWithinGetInstance(typeX)));
             codeStream.ifnull(noInstanceExists);
             codeStream.iconst_1();
             codeStream.goto_(leave);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel.placeStart()

      final EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(this.scope);
      generateMethod(classFile, AjcMemberMaker.perTypeWithinGetInstance(world.fromBinding(binding)),
      new BodyGenerator() {
        public void generate(CodeStream codeStream) {
          ExceptionLabel exc = new ExceptionLabel(codeStream,world.makeTypeBinding(UnresolvedType.JAVA_LANG_EXCEPTION));
          exc.placeStart();
          codeStream.aload_0();
          codeStream.ldc(NameMangler.perTypeWithinLocalAspectOf(typeX));
          codeStream.aconst_null();
          codeStream.invokevirtual(
              new MethodBinding(
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.