/** * Returns the line number range of the given class member as "m:n", * if it can find it, or <code>null</code> otherwise. */ public String getLineNumberRange(Clazz clazz) { CodeAttribute codeAttribute = (CodeAttribute)getAttribute(clazz, ClassConstants.ATTR_Code); if (codeAttribute == null) { return null; } LineNumberTableAttribute lineNumberTableAttribute = (LineNumberTableAttribute)codeAttribute.getAttribute(clazz, ClassConstants.ATTR_LineNumberTable); if (lineNumberTableAttribute == null) { return null; } return "" + lineNumberTableAttribute.getLineNumber(0) + ":" + lineNumberTableAttribute.getLineNumber(Integer.MAX_VALUE); }