com.mebigfatguy.fbcontrib.utils
Class AttributesUtils

java.lang.Object
  extended by com.mebigfatguy.fbcontrib.utils.AttributesUtils

public class AttributesUtils
extends java.lang.Object

a collection of static methods for working with code attribute queries


Method Summary
static boolean isValidLineNumber(org.apache.bcel.classfile.Code obj, int pc)
          returns whether the pc is at a line number that also appears for a another byte code offset later on in the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValidLineNumber

public static boolean isValidLineNumber(org.apache.bcel.classfile.Code obj,
                                        int pc)
returns whether the pc is at a line number that also appears for a another byte code offset later on in the method. If this occurs we are in a jdk6 finally replicated block, and so don't report this. If the code has no line number table, then just report it.

Parameters:
obj - the code object to find line number attributes from
pc - the pc to check
Returns:
whether the pc is in user code


Copyright © 2005-2008 MeBigFatGuy.com. All Rights Reserved.