public static SourceLineAnnotation forEntireMethod(JavaClass javaClass, Method method) { String sourceFile = javaClass.getSourceFileName(); Code code = method.getCode(); LineNumberTable lineNumberTable = method.getLineNumberTable(); if (code == null || lineNumberTable == null) { return createUnknown(javaClass.getClassName(), sourceFile);
public static SourceLineAnnotation forEntireMethod(String className, String sourceFile, LineNumberTable lineNumberTable, int codeSize) { LineNumber[] table = lineNumberTable.getLineNumberTable(); if (table != null && table.length > 0) { LineNumber first = table[0]; LineNumber last = table[table.length - 1]; return new SourceLineAnnotation(className, sourceFile, first.getLineNumber(), last.getLineNumber(), 0, codeSize - 1); } else { return createUnknown(className, sourceFile, 0, codeSize - 1);
	public static SourceLineAnnotation forEntireMethod(JavaClass javaClass, Method method) {		String sourceFile = javaClass.getSourceFileName();		Code code = method.getCode();		LineNumberTable lineNumberTable = method.getLineNumberTable();		if (code == null || lineNumberTable == null) {			return createUnknown(javaClass.getClassName(), sourceFile);		}				return forEntireMethod(javaClass.getClassName(), sourceFile, lineNumberTable, code.getLength());	}