Class ProjogStackTraceElement

java.lang.Object
org.projog.api.ProjogStackTraceElement

public final class ProjogStackTraceElement extends Object
An element in a stack trace, as returned by Projog.getStackTrace(Throwable).

Each element represents a single stack frame. All stack frames represent the evaluation of a clause in a user defined function. The frame at the top of the stack represents the execution point at which the stack trace was generated.

  • Method Details

    • getPredicateKey

      public PredicateKey getPredicateKey()
      Represents the user defined predicate this stack trace element was generated for.
      Returns:
      key Represents the user defined predicate this stack trace element was generated for
    • getTerm

      public Term getTerm()
      Represents the clause this stack trace element was generated for.
      Returns:
      the clause this stack trace element was generated for