PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/kilim/analysis/NopInsn.java

http://github.com/kilim/kilim
Java | 41 lines | 24 code | 11 blank | 6 comment | 0 complexity | fde8cc5282e09af09a10836e0dea4def MD5 | raw file
 1/* Copyright (c) 2006, Sriram Srinivasan
 2 *
 3 * You may distribute this software under the terms of the license 
 4 * specified in the file "License"
 5 */
 6
 7package kilim.analysis;
 8
 9import static org.objectweb.asm.Opcodes.NOP;
10
11import java.util.Map;
12
13import org.objectweb.asm.MethodVisitor;
14import org.objectweb.asm.tree.AbstractInsnNode;
15
16class NopInsn extends AbstractInsnNode {
17    public NopInsn() {
18        super(NOP);
19    }
20
21    public int getType() {
22        return 0;
23    }
24
25    @Override
26    public void accept(MethodVisitor mv) {
27        // Do nothing
28    }
29
30
31    @Override
32    public String toString() {
33        return "NOP";
34    }
35
36    @Override
37    public AbstractInsnNode clone(@SuppressWarnings("rawtypes") Map labels) {
38        return new NopInsn();
39    }
40
41}