Class ParentMap

java.lang.Object
manifold.internal.javac.ParentMap

public class ParentMap extends Object
A mapping of child to parent for every child tree in a CompilationUnitTree. The tree node in the Java AST does not maintain a reference to its parent, hence the need for this mapping.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParentMap(Supplier<com.sun.source.tree.CompilationUnitTree> compilationUnitSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sun.source.tree.Tree
    getParent(com.sun.source.tree.Tree child)
     
    com.sun.source.tree.Tree
    getParent(com.sun.source.tree.Tree child, com.sun.source.tree.CompilationUnitTree compilationUnitTree)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParentMap

      public ParentMap(Supplier<com.sun.source.tree.CompilationUnitTree> compilationUnitSupplier)
  • Method Details

    • getParent

      public com.sun.source.tree.Tree getParent(com.sun.source.tree.Tree child)
    • getParent

      public com.sun.source.tree.Tree getParent(com.sun.source.tree.Tree child, com.sun.source.tree.CompilationUnitTree compilationUnitTree)