Package org.objectweb.asm.commons

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


    // if (this.field == null) {
    final Label alreadySet = mv.newLabel();
    mv.loadThis();
    mv.getField( section().classType(), sub.getterName(), sub.arrayType() );
    mv.ifNonNull( alreadySet );

    // ~ final DetailInput[] ds = this.inputs.getarray();
    final CallFrame inputCall = sub.model().getCallChainToCall();
    final Class inputContainerClass = inputCall.getMethod().getReturnType();
    final Type inputContainerType = Type.getType( inputContainerClass );
View Full Code Here


    // if (this.xy == null) {
    final Label skipInit = mv.newLabel();
    mv.loadThis();
    mv.visitFieldInsn( Opcodes.GETFIELD, section().classInternalName(), methodName(), arrayDescriptor() );
    mv.ifNonNull( skipInit );

    // ... new double[ n ]
    mv.loadThis();
    mv.push( n );
    mv.newArray( eltType );
View Full Code Here

    // Stack[1]: [[Z
    // Stack[0]: [[Z

    // Skip initialization when we already have a data array:
    final Label alreadyInitialized = new Label();
    gen.ifNonNull(alreadyInitialized);

    // Stack[0]: [[Z

    gen.pop();
    final int size = genInitializeDataField(gen);
View Full Code Here

    // Stack[1]: [Z
    // Stack[0]: [Z

    // Skip initialization when we already have a data array:
    final Label alreadyInitialized = new Label();
    gen.ifNonNull(alreadyInitialized);

    // Stack[0]: [Z

    gen.pop();
    final int size = genInitializeDataField(gen);
View Full Code Here

        // to test if the handler is initialized...

        if (md.isImplemented()) {
            ga.dup();
            Label ok = ga.newLabel();
            ga.ifNonNull(ok);

            ga.loadThis();
            ga.loadArgs();
            ga.invokeConstructor(superType, m);
            ga.returnValue();
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.