Examples of loadArg()


Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

        mv.putField( section().classType(), ENV_MEMBER_NAME, ENV_CLASS );

        // this.inputs = _inputs;
        if (hasInputs()) {
          mv.loadThis();
          mv.loadArg( 0 );
          storeInputs( mv );
        }

        //this.sectionInfo = new SectionInfoImpl(...);
        if (isComputationListenerEnabled()) {
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

    GeneratorAdapter mv = newMethod( Opcodes.ACC_PUBLIC, "<init>", ENV_CONSTRUCTOR_SIG );
    mv.visitCode();
    mv.loadThis();
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, _parentType.getInternalName(), "<init>", "()V" );
    mv.loadThis();
    mv.loadArg( 0 );
    mv.putField( this.classType(), ByteCodeEngineCompiler.ENV_MEMBER_NAME, ByteCodeEngineCompiler.ENV_CLASS );
    mv.visitInsn( Opcodes.RETURN );
    endMethod( mv );
  }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

  {
    final GeneratorAdapter mv = newMethod( "newComputation", "(Ljava/lang/Object;)"
        + ByteCodeEngineCompiler.COMPUTATION_INTF.getDescriptor() );
    mv.newInstance( ByteCodeEngineCompiler.GEN_ROOT_CLASS );
    mv.dup();
    mv.loadArg( 0 );
    compileClassRef( this.userInputClass, this.userInputType );
    mv.checkCast( this.userInputType );
    mv.loadThis();
    mv.getField( classType(), ByteCodeEngineCompiler.ENV_MEMBER_NAME, ByteCodeEngineCompiler.ENV_CLASS );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, ByteCodeEngineCompiler.GEN_ROOT_CLASS.getInternalName(), "<init>", "("
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

  {
    final GeneratorAdapter mv = newMethod( this.userFactoryMethod.getName(), Type
        .getMethodDescriptor( this.userFactoryMethod ) );
    mv.newInstance( ByteCodeEngineCompiler.GEN_ROOT_CLASS );
    mv.dup();
    mv.loadArg( 0 );
    mv.loadThis();
    mv.getField( classType(), ByteCodeEngineCompiler.ENV_MEMBER_NAME, ByteCodeEngineCompiler.ENV_CLASS );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, ByteCodeEngineCompiler.GEN_ROOT_CLASS.getInternalName(), "<init>", "("
        + this.userInputType.getDescriptor() + ByteCodeEngineCompiler.ENV_DESC + ")V" );
    mv.visitInsn( Opcodes.ARETURN );
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

        // super( _inputs ); or super(); or super( _inputs, _parent );
        callInheritedConstructor( mv, 1 );

        // this.parent = _parent;
        mv.loadThis();
        mv.loadArg( 1 );
        mv.putField( classType(), PARENT_MEMBER_NAME, parentType() );
        // this.root = _parent.root();
        mv.loadThis();
        mv.loadArg( 1 );
        final Type rootType = rootSectionCompiler().classType();
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

        mv.loadThis();
        mv.loadArg( 1 );
        mv.putField( classType(), PARENT_MEMBER_NAME, parentType() );
        // this.root = _parent.root();
        mv.loadThis();
        mv.loadArg( 1 );
        final Type rootType = rootSectionCompiler().classType();
        if (!(parentSectionCompiler() instanceof RootSectionCompiler)) {
          // parent.root is package visible
          mv.getField( parentType(), ROOT_MEMBER_NAME, rootType );
        }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

        mv.putField( SubSectionCompiler.this.classType(), ROOT_MEMBER_NAME, rootType );

        // this.inputs = _inputs;
        if (hasInputs()) {
          mv.loadThis();
          mv.loadArg( 0 );
          storeInputs( mv );
        }

        //this.sectionInfo = new SectionInfoImpl(...);
        if (isComputationListenerEnabled()) {
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

        }

        //this.sectionInfo = new SectionInfoImpl(...);
        if (isComputationListenerEnabled()) {
          mv.loadThis();
          mv.loadArg( 2 ); //section index
          final ExpressionCompilerForNumbers c = numericCompiler();
          final SectionModel sectionModel = model();
          final RangeAddress range = (RangeAddress) model().getSource();
          final CellAddress topLeft = range.getTopLeft();
          final CellAddress bottomRight = range.getBottomRight();
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

    // Constructor(DelegatorContext)
    GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, constructor, signature, null, classWriter);

    // super(context);
    mg.loadThis();
    mg.loadArg(0);
    mg.invokeConstructor(Type.getType(AbstractHttpHandlerDelegator.class),
                         Methods.getMethod(void.class, "<init>", DelegatorContext.class));
    mg.returnValue();
    mg.endMethod();
  }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()

    // Constructor(TypeToken<?> classType)
    GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, getMethod(void.class, "<init>", TypeToken.class),
                                               null, new Type[0], classWriter);
    mg.loadThis();
    mg.loadArg(0);
    mg.invokeConstructor(Type.getType(AbstractFieldAccessor.class), getMethod(void.class, "<init>", TypeToken.class));
    if (isPrivate) {
      initializeReflectionField(mg, field);
    }
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.