Class CallGraphNode

    • Constructor Detail

      • CallGraphNode

        public CallGraphNode​(BaseCallGraph graph,
                             CodeMember cm)
        Builds the node.
        Parameters:
        graph - the parent graph
        cm - the code member represented by this node
    • Method Detail

      • getCodeMember

        public CodeMember getCodeMember()
        Yields the CodeMember represented by this node.
        Returns:
        the code member
      • setOffset

        public int setOffset​(int offset)
        Description copied from interface: Node
        Sets the offset of this node to the given value, and then proceeds by setting the one of its nested nodes (if any) to subsequent values. The last offset used is returned.
        Specified by:
        setOffset in interface Node<CallGraphNode,​CallGraphEdge,​BaseCallGraph>
        Parameters:
        offset - the offset to set
        Returns:
        the last offset used while setting the offsets of nested nodes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object