public class AssertionMethods
extends java.lang.Object
Constructor and Description |
---|
AssertionMethods(org.apache.bcel.classfile.JavaClass jclass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAssertionCall(org.apache.bcel.generic.InvokeInstruction inv) |
boolean |
isAssertionHandle(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg) |
boolean |
isAssertionInstruction(org.apache.bcel.generic.Instruction ins,
org.apache.bcel.generic.ConstantPoolGen cpg)
Does the given instruction refer to a likely assertion method?
|
public AssertionMethods(org.apache.bcel.classfile.JavaClass jclass)
jclass
- the JavaClass containing the methodrefspublic boolean isAssertionHandle(org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg)
public boolean isAssertionInstruction(org.apache.bcel.generic.Instruction ins, org.apache.bcel.generic.ConstantPoolGen cpg)
ins
- the instructionpublic boolean isAssertionCall(org.apache.bcel.generic.InvokeInstruction inv)
SpotBugs is licensed under the LGPL.