Class ProjogStackTraceElement


  • public final class ProjogStackTraceElement
    extends java.lang.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.

    • Constructor Detail

      • ProjogStackTraceElement

        ProjogStackTraceElement​(PredicateKey key,
                                Term term)
        Parameters:
        term - the clause this stack trace element was generated for
    • Method Detail

      • 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