Class DependencyEdge

java.lang.Object
com.google.inject.grapher.Edge
com.google.inject.grapher.DependencyEdge

public class DependencyEdge extends Edge
Edge from a class or InjectionPoint to the interface node that will satisfy the dependency.
Since:
4.0 (since 2.0 as an interface)
  • Field Details

    • injectionPoint

      private final InjectionPoint injectionPoint
      Injection point to which this dependency belongs, or null if the dependency isn't attached to a particular injection point.
  • Constructor Details

  • Method Details

    • getInjectionPoint

      public InjectionPoint getInjectionPoint()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Edge
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Edge
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • copy

      public Edge copy(NodeId fromId, NodeId toId)
      Description copied from class: Edge
      Returns a copy of the edge with new node IDs.
      Specified by:
      copy in class Edge
      Parameters:
      fromId - new ID of the 'from' node
      toId - new ID of the 'to' node
      Returns:
      copy of the edge with the new node IDs