Examples of addAload()


Examples of javassist.bytecode.Bytecode.addAload()

    final Bytecode code = new Bytecode( constPool, 6, 4 );
    /* | this | bean | args | raw bean | */
    if ( getters.length >= 0 ) {
      // aload_1 // load bean
      code.addAload( 1 );
      // checkcast // cast bean
      code.addCheckcast( this.targetBean.getName() );
      // astore_3 // store bean
      code.addAstore( 3 );
      for ( int i = 0; i < getters.length; ++i ) {
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

      code.addAstore( 3 );
      for ( int i = 0; i < getters.length; ++i ) {
        if ( getters[i] != null ) {
          final Method getter = getters[i];
          // aload_2 // args
          code.addAload( 2 );
          // iconst_i // continue to aastore
          // growing stack is 1
          code.addIconst( i );
          final Class returnType = getter.getReturnType();
          int typeIndex = -1;
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

            // dup
            code.addOpcode( Opcode.DUP );
          }

          // aload_3 // load the raw bean
          code.addAload( 3 );
          final String getterSignature = RuntimeSupport.makeDescriptor( getter );
          final String getterName = getter.getName();
          if ( this.targetBean.isInterface() ) {
            // invokeinterface
            code.addInvokeinterface( targetBeanConstPoolIndex, getterName, getterSignature, 1 );
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

      // iconst_0 // i
      code.addIconst( 0 );
      // istore_3 // store i
      code.addIstore( 3 );
      // aload_1 // load the bean
      code.addAload( 1 );
      // checkcast // cast the bean into a raw bean
      code.addCheckcast( this.targetBean.getName() );
      // astore 4 // store the raw bean
      code.addAstore( 4 );
      /* current stack len = 0 */
 
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

            lastIndex = i;
          }
        }
        /* current stack len = 0 */
        // aload 4 // load the raw bean
        code.addAload( 4 );
        // aload_2 // load the args
        code.addAload( 2 );
        // iconst_i
        code.addIconst( i );
        // aaload
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

        }
        /* current stack len = 0 */
        // aload 4 // load the raw bean
        code.addAload( 4 );
        // aload_2 // load the args
        code.addAload( 2 );
        // iconst_i
        code.addIconst( i );
        // aaload
        code.addOpcode( Opcode.AALOAD );
        // checkcast
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

      // new // BulkAccessorException
      code.addNew( BULKEXCEPTION_CLASS_NAME );
      // dup
      code.addOpcode( Opcode.DUP );
      // aload 5 // load exception
      code.addAload( 5 );
      // iload_3 // i
      code.addIload( 3 );
      // invokespecial // BulkAccessorException.<init>
      final String consDesc = "(Ljava/lang/Throwable;I)V";
      code.addInvokespecial( BULKEXCEPTION_CLASS_NAME, MethodInfo.nameInit, consDesc );
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

    );

    /* local variable | this | */
    final Bytecode code = new Bytecode( constPool, 2, 1 );
    // aload_0 // load this
    code.addAload( 0 );
    // getfield // get field "$JAVASSIST_CALLBACK" defined already
    code.addOpcode( Opcode.GETFIELD );
    final int fieldIndex = constPool.addFieldrefInfo( thisClassInfo, HANDLER_FIELD_NAME, HANDLER_FIELD_DESCRIPTOR );
    code.addIndex( fieldIndex );
    // areturn // return the value of the field
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

    );

    /* local variables | this | callback | */
    final Bytecode code = new Bytecode(constPool, 3, 3);
    // aload_0 : load this
    code.addAload( 0 );
    // aload_1 : load callback
    code.addAload( 1 );
    // putfield // put field "$JAVASSIST_CALLBACK" defined already
    code.addOpcode( Opcode.PUTFIELD );
    final int fieldIndex = constPool.addFieldrefInfo( thisClassInfo, HANDLER_FIELD_NAME, HANDLER_FIELD_DESCRIPTOR );
View Full Code Here

Examples of javassist.bytecode.Bytecode.addAload()

    /* local variables | this | callback | */
    final Bytecode code = new Bytecode(constPool, 3, 3);
    // aload_0 : load this
    code.addAload( 0 );
    // aload_1 : load callback
    code.addAload( 1 );
    // putfield // put field "$JAVASSIST_CALLBACK" defined already
    code.addOpcode( Opcode.PUTFIELD );
    final int fieldIndex = constPool.addFieldrefInfo( thisClassInfo, HANDLER_FIELD_NAME, HANDLER_FIELD_DESCRIPTOR );
    code.addIndex( fieldIndex );
    // return
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.