edu.umd.cs.findbugs.ba

Class TargetEnumeratingVisitor

public class TargetEnumeratingVisitor extends EmptyVisitor implements EdgeTypes

Visitor to find all of the targets of an instruction whose InstructionHandle is given. Note that we don't consider exception edges.

Author: David Hovemeyer Chadd Williams

Constructor Summary
TargetEnumeratingVisitor(InstructionHandle handle, ConstantPoolGen constPoolGen)
Constructor.
Method Summary
booleaninstructionIsExit()
Is the analyzed instruction an exit (call to System.exit())?
booleaninstructionIsReturn()
Is the analyzed instruction a method return?
booleaninstructionIsThrow()
Is the analyzed instruction an explicit throw?
booleanisEndOfBasicBlock()
Is the instruction the end of a basic block?
Iterator<Target>targetIterator()
Iterate over Target objects representing control flow targets and their edge types.

Constructor Detail

TargetEnumeratingVisitor

public TargetEnumeratingVisitor(InstructionHandle handle, ConstantPoolGen constPoolGen)
Constructor.

Parameters: handle the handle of the instruction whose targets should be enumerated constPoolGen the ConstantPoolGen object for the class

Method Detail

instructionIsExit

public boolean instructionIsExit()
Is the analyzed instruction an exit (call to System.exit())?

instructionIsReturn

public boolean instructionIsReturn()
Is the analyzed instruction a method return?

instructionIsThrow

public boolean instructionIsThrow()
Is the analyzed instruction an explicit throw?

isEndOfBasicBlock

public boolean isEndOfBasicBlock()
Is the instruction the end of a basic block?

targetIterator

public Iterator<Target> targetIterator()
Iterate over Target objects representing control flow targets and their edge types.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.