public void addInstructions ( Functor body , SizeableList < WAMInstruction > instructions ) { int oldLength ; if ( this . body == null ) { oldLength = 0 ; this . body = new Functor [ 1 ] ; } else { oldLength = this . body . length ; this . body = Arrays . copyOf ( this . body , oldLength + 1 ) ; } this . body [ oldLength ] = body ; addInstructionsAndThisToParent ( instructions ) ; }
Adds a conjunctive body functor or head functor to this clause along with the instructions that implement it .