All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kilim.analysis.NopInsn Maven / Gradle / Ivy

Go to download

Coroutines, continuations, fibers, actors and message passing for the JVM

There is a newer version: 2.0.2-jdk7
Show newest version
/* Copyright (c) 2006, Sriram Srinivasan
 *
 * You may distribute this software under the terms of the license 
 * specified in the file "License"
 */

package kilim.analysis;

import static org.objectweb.asm.Opcodes.NOP;

import java.util.Map;

import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.tree.AbstractInsnNode;

class NopInsn extends AbstractInsnNode {
    public NopInsn() {
        super(NOP);
    }

    public int getType() {
        return 0;
    }

    @Override
    public void accept(MethodVisitor mv) {
        // Do nothing
    }


    @Override
    public String toString() {
        return "NOP";
    }

    @Override
    public AbstractInsnNode clone(@SuppressWarnings("rawtypes") Map labels) {
        return new NopInsn();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy