1/******************************************************************************* 2 * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * Marc R. Hoffmann - initial API and implementation 10 * 11 *******************************************************************************/ 12package org.jacoco.core.internal.instr; 13 14import org.objectweb.asm.ClassVisitor; 15import org.objectweb.asm.MethodVisitor; 16 17/** 18 * The strategy does not emit any code at all. This is used for interface types 19 * without any code. 20 */ 21class NoneProbeArrayStrategy implements IProbeArrayStrategy { 22 23 public int storeInstance(final MethodVisitor mv, final boolean clinit, 24 final int variable) { 25 throw new UnsupportedOperationException(); 26 } 27 28 public void addMembers(final ClassVisitor delegate, final int probeCount) { 29 // nothing to do 30 } 31 32}