public static InsnList ifIntegersEqual ( InsnList lhs , InsnList rhs , InsnList action ) { Validate . notNull ( lhs ) ; Validate . notNull ( rhs ) ; Validate . notNull ( action ) ; InsnList ret = new InsnList ( ) ; LabelNode notEqualLabelNode = new LabelNode ( ) ; ret . add ( lhs ) ; ret . add ( rhs ) ; ret . add ( new JumpInsnNode ( Opcodes . IF_ICMPNE , notEqualLabelNode ) ) ; ret . add ( action ) ; ret . add ( notEqualLabelNode ) ; return ret ; }
Compares two integers and performs some action if the integers are equal .