Class BetterCFGBuilder2.EscapeTarget

  • Enclosing class:
    BetterCFGBuilder2

    private static class BetterCFGBuilder2.EscapeTarget
    extends java.lang.Object
    A placeholder for a control edge that escapes its subroutine to return control back to an outer (calling) subroutine. It will turn into a real edge during inlining.
    • Field Summary

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

      Constructors 
      Constructor Description
      EscapeTarget​(org.apache.bcel.generic.InstructionHandle target, int edgeType)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEdgeType()
      Get the edge type.
      org.apache.bcel.generic.InstructionHandle getTarget()
      Get the target instruction.
      • Methods inherited from class java.lang.Object

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

      • target

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

        @Type
        private final int edgeType
    • Constructor Detail

      • EscapeTarget

        public EscapeTarget​(org.apache.bcel.generic.InstructionHandle target,
                            @Type
                            int edgeType)
        Constructor.
        Parameters:
        target - the target instruction in a calling subroutine
        edgeType - the type of edge that should be created when the subroutine is inlined into its calling context
    • Method Detail

      • getTarget

        public org.apache.bcel.generic.InstructionHandle getTarget()
        Get the target instruction.
      • getEdgeType

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