public static SourceLineAnnotation fromVisitedMethod(MethodGen methodGen, String sourceFile) { LineNumberTable lineNumberTable = methodGen.getLineNumberTable(methodGen.getConstantPool()); String className = methodGen.getClassName(); int codeSize = methodGen.getInstructionList().getLength();
public static SourceLineAnnotation fromVisitedMethod(PreorderVisitor visitor) { LineNumberTable lineNumberTable = getLineNumberTable(visitor); String className = visitor.getDottedClassName(); String sourceFile = visitor.getSourceFile(); Code code = visitor.getMethod().getCode(); int codeSize = (code != null) ? code.getCode().length : 0;
	public static SourceLineAnnotation fromVisitedMethod(MethodGen methodGen, String sourceFile) {		LineNumberTable lineNumberTable = methodGen.getLineNumberTable(methodGen.getConstantPool());		String className = methodGen.getClassName();		int codeSize = methodGen.getInstructionList().getLength();		if (lineNumberTable == null)			return createUnknown(className, sourceFile, 0, codeSize - 1);		return forEntireMethod(className, sourceFile, lineNumberTable, codeSize);	}