001 package railo.transformer.bytecode.visitor; 002 003 import org.objectweb.asm.Label; 004 import org.objectweb.asm.Opcodes; 005 import org.objectweb.asm.commons.GeneratorAdapter; 006 007 import railo.transformer.bytecode.BytecodeContext; 008 009 public final class NotVisitor { 010 011 public static void visitNot(BytecodeContext bc) { 012 GeneratorAdapter adapter = bc.getAdapter(); 013 014 Label l1=new Label(); 015 adapter.visitJumpInsn(Opcodes.IFEQ, l1); 016 adapter.visitInsn(Opcodes.ICONST_0); 017 Label l2 = new Label(); 018 adapter.visitJumpInsn(Opcodes.GOTO, l2); 019 adapter.visitLabel(l1); 020 adapter.visitInsn(Opcodes.ICONST_1); 021 adapter.visitLabel(l2); 022 } 023 024 }