WAMCompiledClause is a clause, that belongs to an
. Compiled instructions added to the
clause fall through onto the parent predicate, and are not held on the compiled clause itself. The compiled clause
has a label, which identifies its position within the parent predicate.
| Responsibilities || Collaborations
| Forward added instructions onto the parent predicate.
| Hold a label as a position marker for the clause within its containing predicate.
The parent predicate to which this compiled clause belongs.
The interned name of this clauses label.
Indicates that this has been added to a parent predicate already.
Creates a clause within a parent predicate.
parent The parent predicate.
Adds a conjunctive body functor, or head functor, to this clause, along with the instructions that implement it.
body A conjunctive body functor to add to this clause.
instructions A list of instructions to add to the body.
oldLength = this.body.length;
this.body[oldLength] = body;
Adds some instructions sequentially, after any existing instructions, to the clause.
instructions The instructions to add to the clause.
Adds some instructions to the parent predicate, and also adds this as a clause on the parent, if it has not
already been added.
instructions The instructions to add.