public class BetterCFGBuilder2 extends java.lang.Object implements CFGBuilder, EdgeTypes, Debug
CFG
BACKEDGE_SOURCE_EDGE, BACKEDGE_TARGET_EDGE, CHECKED_EXCEPTIONS_FLAG, EXIT_EDGE, EXPLICIT_EXCEPTIONS_FLAG, FALL_THROUGH_EDGE, GOTO_EDGE, HANDLED_EXCEPTION_EDGE, IFCMP_EDGE, JSR_EDGE, RET_EDGE, RETURN_EDGE, START_EDGE, SWITCH_DEFAULT_EDGE, SWITCH_EDGE, UNHANDLED_EXCEPTION_EDGE, UNKNOWN_EDGE
VERIFY_INTEGRITY
Constructor and Description |
---|
BetterCFGBuilder2(MethodDescriptor descriptor,
org.apache.bcel.generic.MethodGen methodGen)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
build()
Build the CFG.
|
CFG |
getCFG()
Get the CFG built by this object.
|
int |
getIndex(FieldDescriptor f) |
void |
inline(edu.umd.cs.findbugs.ba.BetterCFGBuilder2.Context context)
Inline a subroutine into a calling context.
|
static void |
main(java.lang.String[] argv)
Test driver.
|
void |
optimize(org.apache.bcel.generic.InstructionList instructionList) |
public BetterCFGBuilder2(@Nonnull MethodDescriptor descriptor, @Nonnull org.apache.bcel.generic.MethodGen methodGen)
methodGen
- the method to build a CFG forpublic int getIndex(FieldDescriptor f)
public void optimize(org.apache.bcel.generic.InstructionList instructionList)
public void build() throws CFGBuilderException
CFGBuilder
build
in interface CFGBuilder
CFGBuilderException
public CFG getCFG()
CFGBuilder
getCFG
in interface CFGBuilder
public void inline(edu.umd.cs.findbugs.ba.BetterCFGBuilder2.Context context) throws CFGBuilderException
context
- the ContextCFGBuilderException
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.