Class SDGActualOutNode


  • public class SDGActualOutNode
    extends PDGNode
    SDG node for the value a call site receives back from the callee.
    • Constructor Detail

      • SDGActualOutNode

        public SDGActualOutNode​(int id,
                                SSAValue returnValue,
                                IRBlock block)
        Creates an actual-out node; the owning call node is set separately.
        Parameters:
        id - the node id
        returnValue - the value the call defines, or null for a void call
        block - the block holding the call
    • Method Detail

      • getCallNode

        public SDGCallNode getCallNode()
        Returns:
        the call node
      • setCallNode

        public void setCallNode​(SDGCallNode callNode)
        Links this node back to the call site that owns it.
        Parameters:
        callNode - the owning call node
      • getReturnValue

        public SSAValue getReturnValue()
        Returns:
        the return value
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in class PDGNode
        Returns:
        a short human-readable description of what this node represents
      • getDefinedValue

        public SSAValue getDefinedValue()
        Specified by:
        getDefinedValue in class PDGNode
        Returns:
        the value this node defines, or null if it defines none
      • hasReturnValue

        public boolean hasReturnValue()
        Returns:
        true if the call produces a value rather than returning void
      • getParameterName

        public String getParameterName()
        Names the returned value for display, falling back to "result" for a void call.
        Returns:
        the display name