Interface IJavaStatement

All Superinterfaces:
IJavaElement, IJavaExpression
All Known Subinterfaces:
IJavaAssignment, IJavaBlock, IJavaBreak, IJavaCall, IJavaCompound, IJavaContinue, IJavaDefinition, IJavaDoWhile, IJavaFor, IJavaForEach, IJavaGoto, IJavaIf, IJavaLabel, IJavaMonitor, IJavaNew, IJavaNewArray, IJavaReturn, IJavaSwitch, IJavaSynchronizedBlock, IJavaTerminalStatement, IJavaThrow, IJavaTry, IJavaWhile

@Ser public interface IJavaStatement extends IJavaExpression
Base interface for Java AST elements that represent statements.
See Also:
  • INonStatement
  • Method Details

    • getIntermediateOffset

      int getIntermediateOffset()
      Returns:
    • setIntermediateOffset

      void setIntermediateOffset(int irOffset)
      Called by the code that converts the IR instructions to AST statements
      Optional for "artificial" AST elements.
      The goal is to maintain a relationship between AST elements and the IR instructions that generated them. Ideally, the same relationship is maintained between IR instructions and machine code. This allows clients to establish correspondence between AST (source) and opcodes (assembly).
      Parameters:
      irOffset - IR code first instruction offset for the statement
    • duplicate

      IJavaStatement duplicate()
      Description copied from interface: IJavaElement
      Duplicate this element.
      Specified by:
      duplicate in interface IJavaElement
      Specified by:
      duplicate in interface IJavaExpression
      Returns:
      a (possibly) duplicated object of the same type