com.google.inject.grapher
Class InstanceNode

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

public class InstanceNode
extends Node

Node for instances. Used when a type is bound to an instance.

Author:
bojand@google.com (Bojan Djordjevic)

Constructor Summary
InstanceNode(NodeId id, Object source, Object instance, Iterable<Member> members)
           
 
Method Summary
 Node copy(NodeId id)
          Returns a copy of the node with a new ID.
 boolean equals(Object obj)
           
 Object getInstance()
           
 Iterable<Member> getMembers()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.google.inject.grapher.Node
getId, getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceNode

public InstanceNode(NodeId id,
                    Object source,
                    Object instance,
                    Iterable<Member> members)
Method Detail

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


Copyright © 2006-2014 Google, Inc.. All Rights Reserved.