Class InstanceNode


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

      Constructors 
      Constructor Description
      InstanceNode​(NodeId id, java.lang.Object source, java.lang.Object instance, java.lang.Iterable<java.lang.reflect.Member> members)  
    • Constructor Detail

      • InstanceNode

        public InstanceNode​(NodeId id,
                            java.lang.Object source,
                            java.lang.Object instance,
                            java.lang.Iterable<java.lang.reflect.Member> members)
    • Method Detail

      • getInstance

        public java.lang.Object getInstance()
      • getMembers

        public java.lang.Iterable<java.lang.reflect.Member> getMembers()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Node
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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