Class UnderlyingAST.CFGStatement

java.lang.Object
org.checkerframework.dataflow.cfg.UnderlyingAST
org.checkerframework.dataflow.cfg.UnderlyingAST.CFGStatement
All Implemented Interfaces:
org.plumelib.util.UniqueId
Enclosing class:
UnderlyingAST

public static class UnderlyingAST.CFGStatement extends UnderlyingAST
If the underlying AST is a statement or expression. This is for field definitions (with initializers) and initializer blocks.
  • Field Details

    • code

      protected final Tree code
    • classTree

      protected final ClassTree classTree
      The class tree this method belongs to.
  • Constructor Details

    • CFGStatement

      public CFGStatement(Tree code, ClassTree classTree)
  • Method Details

    • getCode

      public Tree getCode()
      Description copied from class: UnderlyingAST
      Returns the code that corresponds to the CFG. For a method or lamdda, this returns the body. For other constructs, it returns the tree itself (a statement or expression).
      Specified by:
      getCode in class UnderlyingAST
      Returns:
      the code that corresponds to the CFG
    • getClassTree

      public ClassTree getClassTree()
    • getSimpleClassName

      public String getSimpleClassName()
      Returns the simple name of the enclosing class.
      Returns:
      the simple name of the enclosing class
    • toString

      public String toString()
      Overrides:
      toString in class Object