Class UnderlyingAST

    • Constructor Detail

      • UnderlyingAST

        protected UnderlyingAST​(UnderlyingAST.Kind kind)
        Creates an UnderlyingAST.
        Parameters:
        kind - the kind of the AST
    • Method Detail

      • getUid

        public long getUid​(@UnknownInitialization UnderlyingAST this)
        Specified by:
        getUid in interface org.plumelib.util.UniqueId
      • getCode

        public abstract com.sun.source.tree.Tree getCode()
        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).
        Returns:
        the code that corresponds to the CFG