Class InstanceNode

java.lang.Object
com.google.inject.grapher.Node
com.google.inject.grapher.InstanceNode

public class InstanceNode extends Node
Node for instances. Used when a type is bound to an instance.
Since:
4.0
  • Constructor Details

  • Method Details

    • getInstance

      public Object getInstance()
    • getMembers

      public Iterable<Member> getMembers()
    • equals

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

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

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

      public Node copy(NodeId id)
      Description copied from class: Node
      Returns a copy of the node with a new ID.
      Specified by:
      copy in class Node
      Parameters:
      id - new ID of the node
      Returns:
      copy of the node with a new ID