java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.flow.FlowContext
org.aspectj.org.eclipse.jdt.internal.compiler.flow.TryFlowContext
All Implemented Interfaces:
TypeConstants
Direct Known Subclasses:
FinallyFlowContext, InsideSubRoutineFlowContext

public abstract class TryFlowContext extends FlowContext
Shared implementation for try-statement-related flow contexts.
  • Field Details

    • outerTryContext

      public FlowContext outerTryContext
      For a try statement nested inside a finally block this reference points to the flow context of the outer try block, for access to its initsOnFinally.
  • Constructor Details

  • Method Details

    • markFinallyNullStatus

      public void markFinallyNullStatus(LocalVariableBinding local, int nullStatus)
      Description copied from class: FlowContext
      Record a given null status of a given local variable as it will be seen in the finally block.
      Overrides:
      markFinallyNullStatus in class FlowContext
      Parameters:
      local - the local variable being observed
      nullStatus - the null status of local at the current point in the flow
    • mergeFinallyNullInfo

      public void mergeFinallyNullInfo(FlowInfo flowInfo)
      Description copied from class: FlowContext
      Merge the effect of a statement presumably contained in a try-block, i.e., record how the collected info will affect the corresponding finally-block. Precondition: caller has checked that initsOnFinally != null.
      Overrides:
      mergeFinallyNullInfo in class FlowContext
      Parameters:
      flowInfo - info after executing a statement of the try-block.