public class Hierarchy2
extends java.lang.Object
Repository class. Callers should
generally expect to handle ClassNotFoundException for when referenced classes
can't be found.| Constructor and Description |
|---|
Hierarchy2() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.bcel.generic.ObjectType[] |
findDeclaredExceptions(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg)
Find the declared exceptions for the method called by given instruction.
|
static XMethod |
findExactMethod(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg,
JavaClassAndMethodChooser chooser)
Look up the method referenced by given InvokeInstruction.
|
static XMethod |
findFirstSuperMethod(XMethod m) |
static XMethod |
findInvocationLeastUpperBound(ClassDescriptor classDesc,
java.lang.String methodName,
java.lang.String methodSig,
boolean invokeStatic,
boolean invokeInterface) |
static XMethod |
findInvocationLeastUpperBound(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg,
JavaClassAndMethodChooser methodChooser) |
static XMethod |
findInvocationLeastUpperBound(XClass jClass,
java.lang.String methodName,
java.lang.String methodSig,
boolean invokeStatic,
boolean invokeInterface) |
static XMethod |
findInvocationLeastUpperBound0(XClass jClass,
java.lang.String methodName,
java.lang.String methodSig,
boolean invokeStatic,
boolean invokeInterface) |
static XMethod |
findMethod(ClassDescriptor classDescriptor,
java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic) |
static java.util.Set<XMethod> |
findSuperMethods(XMethod m) |
static java.util.Set<XMethod> |
resolveMethodCallTargets(org.apache.bcel.generic.InvokeInstruction invokeInstruction,
TypeFrame typeFrame,
org.apache.bcel.generic.ConstantPoolGen cpg)
Resolve possible method call targets.
|
static java.util.Set<XMethod> |
resolveMethodCallTargets(org.apache.bcel.generic.ReferenceType receiverType,
org.apache.bcel.generic.InvokeInstruction invokeInstruction,
org.apache.bcel.generic.ConstantPoolGen cpg)
Resolve possible instance method call targets.
|
static java.util.Set<XMethod> |
resolveMethodCallTargets(org.apache.bcel.generic.ReferenceType receiverType,
org.apache.bcel.generic.InvokeInstruction invokeInstruction,
org.apache.bcel.generic.ConstantPoolGen cpg,
boolean receiverTypeIsExact)
Resolve possible instance method call targets.
|
static java.util.Set<XMethod> |
resolveVirtualMethodCallTargets(ClassDescriptor receiverDesc,
java.lang.String methodName,
java.lang.String methodSig,
boolean receiverTypeIsExact,
boolean invokeSpecial) |
static java.util.Set<XMethod> |
resolveVirtualMethodCallTargets(java.lang.String receiverClassName,
java.lang.String methodName,
java.lang.String methodSig,
boolean receiverTypeIsExact,
boolean invokeSpecial) |
static java.util.Set<XMethod> |
resolveVirtualMethodCallTargets(XMethod target,
boolean receiverTypeIsExact,
boolean invokeSpecial) |
public static XMethod findExactMethod(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser chooser)
inv - the InvokeInstructioncpg - the ConstantPoolGen used by the class the InvokeInstruction
belongs tochooser - JavaClassAndMethodChooser to use to pick the method from among
the candidates@CheckForNull public static XMethod findInvocationLeastUpperBound(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg, JavaClassAndMethodChooser methodChooser)
@CheckForNull public static XMethod findInvocationLeastUpperBound(ClassDescriptor classDesc, java.lang.String methodName, java.lang.String methodSig, boolean invokeStatic, boolean invokeInterface)
@CheckForNull public static XMethod findInvocationLeastUpperBound(XClass jClass, java.lang.String methodName, java.lang.String methodSig, boolean invokeStatic, boolean invokeInterface)
@CheckForNull public static XMethod findInvocationLeastUpperBound0(XClass jClass, java.lang.String methodName, java.lang.String methodSig, boolean invokeStatic, boolean invokeInterface)
@CheckForNull public static XMethod findMethod(ClassDescriptor classDescriptor, java.lang.String methodName, java.lang.String methodSig, boolean isStatic)
@Nonnull public static java.util.Set<XMethod> resolveMethodCallTargets(org.apache.bcel.generic.InvokeInstruction invokeInstruction, TypeFrame typeFrame, org.apache.bcel.generic.ConstantPoolGen cpg) throws DataflowAnalysisException, java.lang.ClassNotFoundException
invokeInstruction - the InvokeInstructiontypeFrame - the TypeFrame containing the types of stack valuescpg - the ConstantPoolGenDataflowAnalysisExceptionjava.lang.ClassNotFoundExceptionpublic static java.util.Set<XMethod> resolveMethodCallTargets(org.apache.bcel.generic.ReferenceType receiverType, org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg) throws java.lang.ClassNotFoundException
receiverType - type of the receiver objectinvokeInstruction - the InvokeInstructioncpg - the ConstantPoolGenjava.lang.ClassNotFoundExceptionpublic static java.util.Set<XMethod> resolveMethodCallTargets(org.apache.bcel.generic.ReferenceType receiverType, org.apache.bcel.generic.InvokeInstruction invokeInstruction, org.apache.bcel.generic.ConstantPoolGen cpg, boolean receiverTypeIsExact) throws java.lang.ClassNotFoundException
receiverType - type of the receiver objectinvokeInstruction - the InvokeInstructioncpg - the ConstantPoolGenreceiverTypeIsExact - if true, the receiver type is known exactly, which should
allow a precise resultjava.lang.ClassNotFoundExceptionpublic static java.util.Set<XMethod> resolveVirtualMethodCallTargets(java.lang.String receiverClassName, java.lang.String methodName, java.lang.String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.util.Set<XMethod> resolveVirtualMethodCallTargets(XMethod target, boolean receiverTypeIsExact, boolean invokeSpecial) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.util.Set<XMethod> resolveVirtualMethodCallTargets(ClassDescriptor receiverDesc, java.lang.String methodName, java.lang.String methodSig, boolean receiverTypeIsExact, boolean invokeSpecial) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException@CheckForNull
public static org.apache.bcel.generic.ObjectType[] findDeclaredExceptions(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg)
inv - the InvokeInstructioncpg - the ConstantPoolGen used by the class the InvokeInstruction
belongs toFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.