kilim.analysis.NopInsn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kilim Show documentation
Show all versions of kilim Show documentation
Coroutines, continuations, fibers, actors and message passing for the JVM
/* 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();
}
}