aboutsummaryrefslogtreecommitdiffstats
path: root/org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-08-30 22:13:04 +0600
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-08-30 22:13:04 +0600
commite69ba4dbb015949c5d84ba7bbb0b53efac28bb23 (patch)
tree44cbe6d78216fcb3c37c0aca1dc7ed3fc09906fa /org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java
parenta888d873ac20357a4a11029bc84c5c4b48e394a3 (diff)
downloadplatform_external_jacoco-e69ba4dbb015949c5d84ba7bbb0b53efac28bb23.tar.gz
platform_external_jacoco-e69ba4dbb015949c5d84ba7bbb0b53efac28bb23.tar.bz2
platform_external_jacoco-e69ba4dbb015949c5d84ba7bbb0b53efac28bb23.zip
Fix EOLs
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java218
1 files changed, 109 insertions, 109 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java b/org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java
index d4007cd7..ff66ec10 100644
--- a/org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java
+++ b/org.jacoco.core/src/org/jacoco/core/internal/flow/IMethodProbesVisitor.java
@@ -1,109 +1,109 @@
-/*******************************************************************************
- * Copyright (c) 2009, 2012 Mountainminds GmbH & Co. KG and Contributors
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Marc R. Hoffmann - initial API and implementation
- *
- *******************************************************************************/
-package org.jacoco.core.internal.flow;
-
-import org.objectweb.asm.Label;
-import org.objectweb.asm.MethodVisitor;
-
-/**
- * A {@link MethodVisitor} with additional methods to get probe insertion
- * information.
- */
-public interface IMethodProbesVisitor extends MethodVisitor {
-
- /**
- * Visits an unconditional probe that should be inserted at the current
- * position.
- *
- * @param probeId
- * id of the probe to insert
- */
- public void visitProbe(int probeId);
-
- /**
- * Visits a jump instruction. A probe with the given id should be inserted
- * in a way that it is executed only when the jump to the given label is
- * executed.
- *
- * @param opcode
- * the opcode of the type instruction to be visited. This opcode
- * is either IFEQ, IFNE, IFLT, IFGE, IFGT, IFLE, IF_ICMPEQ,
- * IF_ICMPNE, IF_ICMPLT, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE,
- * IF_ACMPEQ, IF_ACMPNE, GOTO, IFNULL or IFNONNULL.
- * @param label
- * the operand of the instruction to be visited. This operand is
- * a label that designates the instruction to which the jump
- * instruction may jump.
- * @param probeId
- * id of the probe
- * @see MethodVisitor#visitJumpInsn(int, Label)
- */
- void visitJumpInsnWithProbe(int opcode, Label label, int probeId);
-
- /**
- * Visits a zero operand instruction with a probe. This event is used only
- * for instructions that terminate the method. Therefore the probe must be
- * inserted before the actual instruction.
- *
- * @param opcode
- * the opcode of the instruction to be visited. This opcode is
- * either IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN or
- * ATHROW.
- * @param probeId
- * id of the probe
- * @see MethodVisitor#visitInsn(int)
- */
- void visitInsnWithProbe(int opcode, int probeId);
-
- /**
- * Visits a TABLESWITCH instruction with optional probes for each target
- * label. Implementations can be optimized based on the fact that the same
- * target labels will always have the same probe id within a call to this
- * method. The probe id for each label can be obtained with
- * {@link LabelInfo#getProbeId(Label)}.
- *
- * @param min
- * the minimum key value.
- * @param max
- * the maximum key value.
- * @param dflt
- * beginning of the default handler block.
- * @param labels
- * beginnings of the handler blocks. <code>labels[i]</code> is
- * the beginning of the handler block for the
- * <code>min + i</code> key.
- * @see MethodVisitor#visitTableSwitchInsn(int, int, Label, Label[])
- */
- public void visitTableSwitchInsnWithProbes(int min, int max, Label dflt,
- Label[] labels);
-
- /**
- * Visits a LOOKUPSWITCH instruction with optional probes for each target
- * label. Implementations can be optimized based on the fact that the same
- * target labels will always have the same probe id within a call to this
- * method. The probe id for each label can be obtained with
- * {@link LabelInfo#getProbeId(Label)}.
- *
- * @param dflt
- * beginning of the default handler block.
- * @param keys
- * the values of the keys.
- * @param labels
- * beginnings of the handler blocks. <code>labels[i]</code> is
- * the beginning of the handler block for the
- * <code>keys[i]</code> key.
- * @see MethodVisitor#visitLookupSwitchInsn(Label, int[], Label[])
- */
- public void visitLookupSwitchInsnWithProbes(Label dflt, int[] keys,
- Label[] labels);
-
-}
+/*******************************************************************************
+ * Copyright (c) 2009, 2012 Mountainminds GmbH & Co. KG and Contributors
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Marc R. Hoffmann - initial API and implementation
+ *
+ *******************************************************************************/
+package org.jacoco.core.internal.flow;
+
+import org.objectweb.asm.Label;
+import org.objectweb.asm.MethodVisitor;
+
+/**
+ * A {@link MethodVisitor} with additional methods to get probe insertion
+ * information.
+ */
+public interface IMethodProbesVisitor extends MethodVisitor {
+
+ /**
+ * Visits an unconditional probe that should be inserted at the current
+ * position.
+ *
+ * @param probeId
+ * id of the probe to insert
+ */
+ public void visitProbe(int probeId);
+
+ /**
+ * Visits a jump instruction. A probe with the given id should be inserted
+ * in a way that it is executed only when the jump to the given label is
+ * executed.
+ *
+ * @param opcode
+ * the opcode of the type instruction to be visited. This opcode
+ * is either IFEQ, IFNE, IFLT, IFGE, IFGT, IFLE, IF_ICMPEQ,
+ * IF_ICMPNE, IF_ICMPLT, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE,
+ * IF_ACMPEQ, IF_ACMPNE, GOTO, IFNULL or IFNONNULL.
+ * @param label
+ * the operand of the instruction to be visited. This operand is
+ * a label that designates the instruction to which the jump
+ * instruction may jump.
+ * @param probeId
+ * id of the probe
+ * @see MethodVisitor#visitJumpInsn(int, Label)
+ */
+ void visitJumpInsnWithProbe(int opcode, Label label, int probeId);
+
+ /**
+ * Visits a zero operand instruction with a probe. This event is used only
+ * for instructions that terminate the method. Therefore the probe must be
+ * inserted before the actual instruction.
+ *
+ * @param opcode
+ * the opcode of the instruction to be visited. This opcode is
+ * either IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN or
+ * ATHROW.
+ * @param probeId
+ * id of the probe
+ * @see MethodVisitor#visitInsn(int)
+ */
+ void visitInsnWithProbe(int opcode, int probeId);
+
+ /**
+ * Visits a TABLESWITCH instruction with optional probes for each target
+ * label. Implementations can be optimized based on the fact that the same
+ * target labels will always have the same probe id within a call to this
+ * method. The probe id for each label can be obtained with
+ * {@link LabelInfo#getProbeId(Label)}.
+ *
+ * @param min
+ * the minimum key value.
+ * @param max
+ * the maximum key value.
+ * @param dflt
+ * beginning of the default handler block.
+ * @param labels
+ * beginnings of the handler blocks. <code>labels[i]</code> is
+ * the beginning of the handler block for the
+ * <code>min + i</code> key.
+ * @see MethodVisitor#visitTableSwitchInsn(int, int, Label, Label[])
+ */
+ public void visitTableSwitchInsnWithProbes(int min, int max, Label dflt,
+ Label[] labels);
+
+ /**
+ * Visits a LOOKUPSWITCH instruction with optional probes for each target
+ * label. Implementations can be optimized based on the fact that the same
+ * target labels will always have the same probe id within a call to this
+ * method. The probe id for each label can be obtained with
+ * {@link LabelInfo#getProbeId(Label)}.
+ *
+ * @param dflt
+ * beginning of the default handler block.
+ * @param keys
+ * the values of the keys.
+ * @param labels
+ * beginnings of the handler blocks. <code>labels[i]</code> is
+ * the beginning of the handler block for the
+ * <code>keys[i]</code> key.
+ * @see MethodVisitor#visitLookupSwitchInsn(Label, int[], Label[])
+ */
+ public void visitLookupSwitchInsnWithProbes(Label dflt, int[] keys,
+ Label[] labels);
+
+}