Examples of athrow()


Examples of anvil.codec.Code.athrow()

      handler.startCatch(0);
      int thrown = code.addLocal();
      code.astore(thrown);
      handler.callFinally();
      code.aload(thrown);
      code.athrow();
      handler.endCatches();
       _handler = null;

      // finally
      handler.startFinally();
View Full Code Here

Examples of anvil.codec.Code.athrow()

      code.invokevirtual(pool.addMethodRef("anvil/script/Generator", "setClosedState", "()V"));
    }
    _expression.compile(context, Expression.GET);
    code.invokevirtual(pool.addMethodRef(context.TYPE_CONTEXT,
      "exception", "(Lanvil/core/Any;)Lanvil/script/ScriptException;"));
    code.athrow();
 
 
   
  public boolean isBlocked()
  {
View Full Code Here

Examples of anvil.codec.Code.athrow()

    } else {
      code.anew(clazz);
      code.dup();
      code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    }
    code.athrow();
 

   
  public boolean isBlocked()
  {
View Full Code Here

Examples of anvil.codec.Code.athrow()

    handler.startCatch(0);
    int thrown = code.addLocal();
    code.astore(thrown);
    handler.callFinally();
    code.aload(thrown);
    code.athrow();
    handler.endCatches();
    _handler = null;

    handler.startFinally();
    int returnto = code.addLocal();
View Full Code Here

Examples of anvil.codec.Code.athrow()

        code.astore(l_data);
        for(int i=0; i<_catches; i++) {
          _catch[i].compile(context, handler, l_data);
        }
        code.aload(l_throwable);
        code.athrow();
      }

      handler.endProtectedRegion();

      if (_finally != null) {
View Full Code Here

Examples of anvil.codec.Code.athrow()

        handler.startCatch(0);
        int thrown = code.addLocal();
        code.astore(thrown);
        handler.callFinally();
        code.aload(thrown);
        code.athrow();
      }
      handler.endCatches();
      _handler = null;

      // finally
View Full Code Here

Examples of anvil.codec.Code.athrow()

      context.location(getLocation());
      code.aload_first();
      code.astring(_image);
      code.invokevirtual(pool.addMethodRef("anvil/script/Context", "AssertFailed",
        "(Ljava/lang/String;)Lanvil/script/ScriptException;"));
      code.athrow();
      source.bind();
    }
  }  

View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.athrow()

/* 109 */       e.new_instance(BULK_BEAN_EXCEPTION);
/* 110 */       e.dup_x1();
/* 111 */       e.swap();
/* 112 */       e.load_local(index);
/* 113 */       e.invoke_constructor(BULK_BEAN_EXCEPTION, CSTRUCT_EXCEPTION);
/* 114 */       e.athrow();
/*     */     } else {
/* 116 */       e.return_value();
/*     */     }
/* 118 */     e.end_method();
/*     */   }
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.athrow()

        // create catch block
        b.exceptionBlockEnd(start);
        b.exceptionHandlerStart(start);
        b.invokestatic(INTERCEPTION_DECORATION_CONTEXT_CLASS_NAME, END_INTERCEPTOR_CONTEXT_METHOD_NAME, EMPTY_PARENTHESES + DescriptorUtils.VOID_CLASS_DESCRIPTOR);
        b.athrow();

        // update the correct address to jump over the catch block
        b.branchEnd(gotoEnd);

        // if this method returns a primitive we just return
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.athrow()

            ca.branchEnd(loopEnd);
            ca.newInstruction("java.lang.RuntimeException");
            ca.dup();
            ca.ldc("Could not find method " + methodToLoad);
            ca.invokespecial("java.lang.RuntimeException", "<init>", "(Ljava/lang/String;)V");
            ca.athrow();
            ca.branchEnd(gotoEnd);
            ca.pop();
            ca.aload(2);
            ca.checkcast("java.lang.reflect.Method");
            ca.putstatic(getClassName(), fieldName, METHOD_FIELD_DESCRIPTOR);
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.