Interface CodeNode<G extends CodeGraph<G,​N,​E>,​N extends CodeNode<G,​N,​E>,​E extends CodeEdge<G,​N,​E>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getOffset()
      Yields the offset of this node relative to its containing graph.
      int setOffset​(int offset)
      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.
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface it.unive.lisa.util.datastructures.graph.Node

        accept
    • Method Detail

      • setOffset

        int setOffset​(int offset)
        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.
        Parameters:
        offset - the offset to set
        Returns:
        the last offset used while setting the offsets of nested nodes
      • getOffset

        int getOffset()
        Yields the offset of this node relative to its containing graph.
        Returns:
        the offset