public void monitorEnter(){
  mv.visitInsn(Opcodes.MONITORENTER);
}

public void monitorEnter ( ) { mv . visitInsn ( Opcodes . MONITORENTER ) ; }
generates the instruction to get the monitor of the top stack value .
