亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? firstpassmethodinstrumenter.java

?? java覆蓋率測試工具
?? JAVA
字號:
/*
 * Cobertura - http://cobertura.sourceforge.net/
 *
 * Copyright (C) 2005 Mark Doliner
 * Copyright (C) 2006 Jiri Mares
 *
 * Cobertura is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License,
 * or (at your option) any later version.
 *
 * Cobertura is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Cobertura; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */

package net.sourceforge.cobertura.instrument;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import net.sourceforge.cobertura.coveragedata.ClassData;
import net.sourceforge.cobertura.util.RegexUtil;

import org.objectweb.asm.Label;
import org.objectweb.asm.MethodAdapter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.MethodNode;

public class FirstPassMethodInstrumenter extends MethodAdapter implements Opcodes
{

	private final String ownerClass;

	private String myName;

	private String myDescriptor;

	private int myAccess;
   
	private Collection ignoreRegexs;
   
	private Collection ignoreBranchesRegexs;

	private ClassData classData;

	private int currentLine;
   
	private int currentJump;
   
	private int currentSwitch;
	
	private Map jumpTargetLabels;

	private Map switchTargetLabels;
   
	private Map lineLabels;
   
	private MethodVisitor writerMethodVisitor;
   
	private MethodNode methodNode;

	public FirstPassMethodInstrumenter(ClassData classData, final MethodVisitor mv,
			final String owner, final int access, final String name, final String desc, 
			final String signature, final String[] exceptions, final Collection ignoreRegexs,
			final Collection ignoreBranchesRegexs)
	{
		super(new MethodNode(access, name, desc, signature, exceptions));
		writerMethodVisitor = mv;
		this.ownerClass = owner;
		this.methodNode = (MethodNode) this.mv;
		this.classData = classData;
		this.myAccess = access;
		this.myName = name;
		this.myDescriptor = desc;
		this.ignoreRegexs = ignoreRegexs;
		this.ignoreBranchesRegexs = ignoreBranchesRegexs;
		this.jumpTargetLabels = new HashMap();
		this.switchTargetLabels = new HashMap();
		this.lineLabels = new HashMap();
		this.currentLine = 0;
	}

	public void visitEnd() {
		super.visitEnd();

		methodNode.accept(lineLabels.isEmpty() ? writerMethodVisitor : new SecondPassMethodInstrumenter(this)); //when there is no line number info -> no instrumentation
	}

	public void visitJumpInsn(int opcode, Label label)
	{
		// Ignore any jump instructions in the "class init" method.
		// When initializing static variables, the JVM first checks
		// that the variable is null before attempting to set it.
		// This check contains an IFNONNULL jump instruction which
		// would confuse people if it showed up in the reports.
		if ((opcode != GOTO) && (opcode != JSR) && (currentLine != 0)
				&& (!this.myName.equals("<clinit>")))
		{
			classData.addLineJump(currentLine, currentJump);
			jumpTargetLabels.put(label, new JumpHolder(currentLine, currentJump++));
		}
		
		super.visitJumpInsn(opcode, label);
	}

	public void visitLineNumber(int line, Label start)
	{
		// Record initial information about this line of code
		currentLine = line;
		classData.addLine(currentLine, myName, myDescriptor);
		currentJump = 0;
		currentSwitch = 0;
      
		lineLabels.put(start, new Integer(line));

		//removed because the MethodNode doesn't reproduce visitLineNumber where they are but at the end of the file :-(( 
		//therefore we don't need them
		//We can directly instrument the visit line number here, but it is better to leave all instrumentation in the second pass
		//therefore we just collects what label is the line ...
		//super.visitLineNumber(line, start);
	}

	public void visitMethodInsn(int opcode, String owner, String name,
			String desc)
	{
		super.visitMethodInsn(opcode, owner, name, desc);

		// If any of the ignore patterns match this line
		// then remove it from our data
		if (RegexUtil.matches(ignoreRegexs, owner)) 
		{
			classData.removeLine(currentLine);
		}
	}

	public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
	{
		super.visitLookupSwitchInsn(dflt, keys, labels);
      
		if (currentLine != 0)
		{
			switchTargetLabels.put(dflt, new SwitchHolder(currentLine, currentSwitch, -1)); 
			for (int i = labels.length -1; i >=0; i--)
				switchTargetLabels.put(labels[i], new SwitchHolder(currentLine, currentSwitch, i));
			classData.addLineSwitch(currentLine, currentSwitch++, keys);
		}
	}

	public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
	{
		super.visitTableSwitchInsn(min, max, dflt, labels);
      
		if (currentLine != 0)
		{
			switchTargetLabels.put(dflt, new SwitchHolder(currentLine, currentSwitch, -1)); 
			for (int i = labels.length -1; i >=0; i--)
				switchTargetLabels.put(labels[i], new SwitchHolder(currentLine, currentSwitch, i));
			classData.addLineSwitch(currentLine, currentSwitch++, min, max);
		}
	}

	protected void removeLine(int lineNumber) 
	{
		classData.removeLine(lineNumber);
	}
   
	protected MethodVisitor getWriterMethodVisitor() 
	{
		return writerMethodVisitor;
	}

	protected Collection getIgnoreRegexs() 
	{
		return ignoreRegexs;
	}

	protected Map getJumpTargetLabels() 
	{
		return jumpTargetLabels;
	}

	protected Map getSwitchTargetLabels() 
	{
		return switchTargetLabels;
	}

	protected int getMyAccess() 
	{
		return myAccess;
	}

	protected String getMyDescriptor() 
	{
		return myDescriptor;
	}

	protected String getMyName() 
	{
		return myName;
	}

	protected String getOwnerClass() 
	{
		return ownerClass;
	}

	protected Map getLineLabels() 
	{
		return lineLabels;
	}

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产视频一区二区在线| 欧美军同video69gay| 亚洲第一福利一区| 日韩欧美中文字幕精品| 国产精选一区二区三区| 亚洲色图制服诱惑| 久久美女高清视频| 欧美日韩中字一区| 成人禁用看黄a在线| 捆绑变态av一区二区三区| 中文字幕一区二区日韩精品绯色| 欧美男生操女生| 99久久99久久精品免费看蜜桃| 首页欧美精品中文字幕| 国产精品久久国产精麻豆99网站| 欧美色区777第一页| 97久久超碰国产精品电影| 久久99精品久久久久久动态图 | 成人午夜看片网址| 免费的成人av| 天堂成人国产精品一区| 一区二区三区四区不卡视频| 久久久久久久久久久黄色| 精品久久久三级丝袜| 91精品视频网| 日韩欧美国产麻豆| 日韩欧美一级在线播放| 91精品婷婷国产综合久久性色| 欧美日韩一本到| 这里只有精品视频在线观看| 在线视频一区二区免费| 91国产视频在线观看| 在线电影欧美成精品| 色综合天天综合网国产成人综合天 | 亚洲综合丁香婷婷六月香| 久久精品夜夜夜夜久久| 日韩精品中文字幕在线一区| 欧美精选在线播放| 日韩免费高清视频| 国产网站一区二区三区| 亚洲天天做日日做天天谢日日欢 | 亚洲精品伦理在线| 亚洲一区av在线| 蜜臀av一区二区| 麻豆91免费看| 成人av网站免费观看| 在线免费观看成人短视频| 欧美午夜精品久久久| 26uuu亚洲综合色| 亚洲男人都懂的| 国产乱人伦偷精品视频免下载| 99久久精品免费精品国产| 欧美老肥妇做.爰bbww视频| 日韩欧美亚洲国产另类| 亚洲欧美自拍偷拍| 久久精品国产精品亚洲红杏| 91蝌蚪国产九色| 精品久久久久99| 悠悠色在线精品| 国产成人8x视频一区二区| 8v天堂国产在线一区二区| 国产精品欧美一级免费| 蜜乳av一区二区三区| 欧美日韩中文国产| 成人免费在线播放视频| 国产一区二区不卡老阿姨| 91精品福利在线一区二区三区 | 久久先锋资源网| 视频一区免费在线观看| 91麻豆国产香蕉久久精品| 久久久www成人免费毛片麻豆| 午夜不卡av免费| 欧美日韩一区二区三区不卡| 国产精品国产三级国产普通话三级| 激情综合色丁香一区二区| 91.麻豆视频| 图片区小说区区亚洲影院| 欧美专区日韩专区| 一区二区三区日本| 色婷婷av一区二区三区软件| 亚洲欧洲精品一区二区三区| 风间由美中文字幕在线看视频国产欧美| 日韩欧美在线综合网| 免费在线观看视频一区| 欧美tickling挠脚心丨vk| 捆绑变态av一区二区三区| 欧美成人精精品一区二区频| 免费在线成人网| 精品国产a毛片| 国产精品一区在线观看你懂的| 久久久久久电影| 99久久精品国产一区二区三区| 亚洲三级在线免费观看| 在线观看av一区| 日韩国产精品久久久| 久久综合久久综合久久| 成人一区二区视频| 一区二区三区在线视频观看58| 欧美色电影在线| 麻豆精品在线视频| 国产精品理论片在线观看| 欧美日韩在线不卡| 国产精品一区二区在线看| 国产欧美日韩在线| 欧美日韩小视频| 国产精品中文字幕一区二区三区| 亚洲免费在线视频| 精品久久人人做人人爱| 一本久久综合亚洲鲁鲁五月天 | 欧美肥妇bbw| av电影在线观看不卡| 美腿丝袜亚洲综合| 自拍偷自拍亚洲精品播放| 日韩一区二区在线看| 成人黄色在线网站| 久久精品国产免费看久久精品| 中文字幕在线观看一区二区| 欧美精品欧美精品系列| 91首页免费视频| 国产99久久久国产精品潘金 | 99国产精品久久久| 粉嫩av一区二区三区在线播放| 亚洲一区二区三区在线播放| 国产人成亚洲第一网站在线播放| 欧美r级在线观看| 欧美精品高清视频| 成人精品鲁一区一区二区| 狂野欧美性猛交blacked| 午夜av区久久| 日韩—二三区免费观看av| 亚洲福利电影网| 亚洲一区二区三区中文字幕在线| 国产精品国产自产拍高清av王其| 国产区在线观看成人精品| www成人在线观看| 久久久av毛片精品| 中文字幕欧美激情一区| 国产精品久线观看视频| 亚洲欧洲一区二区三区| 亚洲欧美日韩中文播放 | 国产成人午夜高潮毛片| 粉嫩av一区二区三区在线播放| 狠狠色丁香久久婷婷综合_中| 激情伊人五月天久久综合| 国产激情一区二区三区| 成人午夜电影网站| 欧美伊人久久大香线蕉综合69 | 波多野结衣中文字幕一区二区三区| 国产又粗又猛又爽又黄91精品| 国产99精品视频| 91蝌蚪porny九色| 欧美大片免费久久精品三p| 欧美精品一区二区精品网| 国产日韩欧美不卡| 香蕉久久一区二区不卡无毒影院 | 欧美一级日韩免费不卡| 久久久久久毛片| 亚洲五码中文字幕| 精品制服美女久久| 欧美性猛交xxxxxxxx| 日本一区二区三区dvd视频在线| 综合久久综合久久| 国产在线精品一区二区夜色 | 亚洲最大成人综合| 精品夜夜嗨av一区二区三区| 91丨porny丨国产| 国产午夜精品一区二区| 天天操天天色综合| 99久久夜色精品国产网站| 久久这里只有精品首页| 日韩电影在线观看一区| 欧洲另类一二三四区| 国产日韩精品视频一区| 日韩1区2区3区| 在线播放中文字幕一区| 亚洲欧洲中文日韩久久av乱码| 国产在线观看免费一区| 欧美一区欧美二区| 亚洲一区欧美一区| 91久久精品国产91性色tv | 精品一区二区在线看| 91精品在线观看入口| 午夜精品一区二区三区三上悠亚| 91麻豆精品一区二区三区| 国产欧美精品一区二区色综合| 美国三级日本三级久久99| 欧美一区二区三区性视频| 视频精品一区二区| 日韩欧美激情一区| 国产综合色精品一区二区三区| 2023国产一二三区日本精品2022| 国产一区二区精品久久91| 久久综合视频网| 国产精品中文字幕日韩精品 | 国产成人午夜精品5599| 国产精品久久久久婷婷二区次| av动漫一区二区| 一区二区激情小说| 欧美一级精品大片| 成人影视亚洲图片在线|