Class EnvironmentFrame

java.lang.Object
org.apache.jena.reasoner.rulesys.impl.FrameObject
org.apache.jena.reasoner.rulesys.impl.EnvironmentFrame
Direct Known Subclasses:
EnvironmentFrameWithDerivation

public class EnvironmentFrame extends FrameObject
Represents a single frame in the LP interpreter's environment stack. The environment stack represents the AND part of the search tree - it is a sequence of nested predicate calls.

This is used in the inner loop of the interpreter and so is a pure data structure not an abstract data type and assumes privileged access to the interpreter state.

  • Constructor Details

    • EnvironmentFrame

      public EnvironmentFrame(RuleClauseCode clause)
      Constructor
      Parameters:
      clause - the compiled code being interpreted by this env frame
  • Method Details

    • allocate

      public void allocate(int n)
      Allocate a vector of permanent variables for use in the rule execution.
    • getRule

      public Rule getRule()
      Return the rule associated with this environment, null if no such rule.
    • toString

      public String toString()
      Printable string for debugging.
      Overrides:
      toString in class Object