java.lang.Object
org.eclipse.tracecompass.incubator.callstack.core.instrumented.CallStackDepth

public class CallStackDepth extends Object
A class that associates a callstack with a depth, to abstract the state system accesses.
Author:
Geneviève Bastien
  • Constructor Details

    • CallStackDepth

      public CallStackDepth(CallStack callstack, int depth)
      Constructor. The caller must make sure that the callstack has the requested depth.
      Parameters:
      callstack - The callstack
      depth - The depth of the callstack
  • Method Details

    • getQuark

      public int getQuark()
      Get the quark corresponding to this callstack depth
      Returns:
      The quark at this depth
    • getCallStack

      public CallStack getCallStack()
      Get the callstack corresponding to this callstack depth
      Returns:
      The callstack
    • getDepth

      public int getDepth()
      Get the depth in the callstack this object represents
      Returns:
      The depth in the callstack
    • hashCode

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object