Class Target

java.lang.Object
edu.umd.cs.findbugs.ba.Target

public class Target extends Object
The target of a branch instruction.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final org.apache.bcel.generic.InstructionHandle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Target(org.apache.bcel.generic.InstructionHandle targetInstruction, int edgeType)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the control flow edge type.
    org.apache.bcel.generic.InstructionHandle
    Get the handle of the target instruction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • targetInstruction

      private final org.apache.bcel.generic.InstructionHandle targetInstruction
    • edgeType

      @Type private final int edgeType
  • Constructor Details

    • Target

      public Target(org.apache.bcel.generic.InstructionHandle targetInstruction, @Type int edgeType)
      Constructor.
      Parameters:
      targetInstruction - the handle of the target instruction
      edgeType - type of CFG edge; see EdgeTypes interface
  • Method Details

    • getTargetInstruction

      public org.apache.bcel.generic.InstructionHandle getTargetInstruction()
      Get the handle of the target instruction.
    • getEdgeType

      @Type public int getEdgeType()
      Get the control flow edge type.